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

Url basename for application #121

Open
Maxim11111 opened this issue Aug 30, 2024 · 4 comments
Open

Url basename for application #121

Maxim11111 opened this issue Aug 30, 2024 · 4 comments

Comments

@Maxim11111
Copy link

Hello! How do I change the base URL for an application?
For example: /app

@arturvolokhin
Copy link
Collaborator

Good afternoon!
I didn't quite understand what kind of result you wanna get.
Could you add more information, preferably with an example?
What do you mean by the base URL?

@Maxim11111
Copy link
Author

Maxim11111 commented Aug 30, 2024

Let's say I have a landing page with a promo project.
The site address will look like this: https://mydomain.com and it is managed by any hosting.
The project should include an admin panel, as well as a user's personal account. To log into the admin panel or personal account, the user will need to click on the link "Personal account".
The Admiral application must be launched from the address: https://mydomain.com/app (by configuring nginx location )

The application is currently running from the base address /. I can just link the entire route structure to /pages/app/... But the address /login, as well as events in which clicking on the "logo" resets the route to /, which interrupts the operation of the application.

Is there a way to specify the start url for the application https://mydomain.com/app to all other routes, including https://mydomain.com/app/login

@arturvolokhin
Copy link
Collaborator

We are already working on adding this feature to our package.
Updates will be included in the new version of admiral early next week.

All you will need to do is pass the baseAppUrl as a prop to the <Admin baseAppUrl="/app" /> component.
The component is located in this file

Thank you for your feedback, you are helping us to become better.

@arturvolokhin
Copy link
Collaborator

Good afternoon, Maxim!

We have added the functionality that you need. You can update the version of our package using yarn add @devfamily/admiral@latest or npm i @devfamily/admiral@latest or any other way depending on the package manager.

We hope it will help you.
Best regards, dev.family team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants