Option in the UI to change default route #805
Johnnycyan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to be able to change the default behavior of redirecting domain.com to domain.com/dashboard and instead be able to specify another url to redirect domain.com to and only go to the dashboard if specifically entered.
This way I can have for example:
the use case of this is so that users can go to the base domain and have it redirect them to the creator's social page, whereas admins can still access dashboard without affecting the normal users.
I manually hardcoded a url in the index file in src/server/index.js for my own use cases but obviously this is not ideal.
All that would need to be changed is adding the UI option and then changing this code at line 155 in
src/server/index.tsto this:
where USER_SPECIFIED_BASE_URL is the url set in the UI
Beta Was this translation helpful? Give feedback.
All reactions