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

the slug.smart-api.info link adds extra string to the URL at load time #127

Open
newgene opened this issue May 27, 2021 · 1 comment
Open
Assignees

Comments

@newgene
Copy link
Contributor

newgene commented May 27, 2021

The API page like:

https://api.smart-api.info/

or

https://mygene.smart-api.info/

should be rendered without adding the extra "/ui/" to the URL, like this one below:

https://api.smart-api.info/ui/27a5b60716c3a401f2c021a5b718c5b1

@marcodarko
Copy link
Collaborator

This is part of long discussion as seen here on how to change current component used by router-view without changing current URL. It's sort of not what you want to do, however we can manipulate the url after the navigation redirect to the UI page. You can see how that works on the router.js file, there's a navigation guard there that looks for slugs and redirects if it finds one. A quick way to "fix" this is with the history.replaceState to change the url back to normal without the router reacting. It's a bit of a hack but works. I'll add this on our next update and it should work as requested.

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

3 participants