Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs]: HOw to achive this MaterialRoute(page: StartupView, initial: true, path: '/:uiD?', ), // Optional parameter route #1114

Closed
vinodvishwakarmma opened this issue Jul 8, 2024 · 1 comment
Labels
documentation Issue to force documentation updates Feedback Requested Waiting for new information from the OP

Comments

@vinodvishwakarmma
Copy link

Describe the missing piece of documentation

Hi,

I want to implement url like like https://exy.com/jdhdydhst where 'jdhdydhst' is uiDor id which is optional if uiDexist then load data from api using uiD if it is not exist then load without is . I have tried many ways to do this but not succussed plz help me how to setupup route

@StackedApp( routes: [ // MaterialRoute(page: StartupView), MaterialRoute( page: StartupView, initial: true, path: '/:uiD?', ), // Optional parameter route MaterialRoute(page: HomeView), // @stacked-route ],

Help me how to implement it

Thanks in advance

@vinodvishwakarmma vinodvishwakarmma added the documentation Issue to force documentation updates label Jul 8, 2024
@FilledStacks
Copy link
Contributor

You'll have to remove the initialRoute part and just use path instead.

You can also remove the ? after the optional path param

And in addition to that you can add a redirect for / to go to /[yourDefaultUid[

@FilledStacks FilledStacks added the Feedback Requested Waiting for new information from the OP label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issue to force documentation updates Feedback Requested Waiting for new information from the OP
Projects
None yet
Development

No branches or pull requests

2 participants