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

Route Issue - Handle the page when it not ends with slash #14

Open
omarceloribeiro opened this issue Aug 13, 2023 · 2 comments
Open

Route Issue - Handle the page when it not ends with slash #14

omarceloribeiro opened this issue Aug 13, 2023 · 2 comments
Milestone

Comments

@omarceloribeiro
Copy link
Owner

Routes are working. but still fail when a page .aspx or a site root doesn't ends with slash /

@omarceloribeiro omarceloribeiro added this to the First MVP milestone Aug 13, 2023
@omarceloribeiro
Copy link
Owner Author

initial suggested solution: onInit, change the pathname to / using history.pushState(null, "", window.location.href + '/'); also set the baseHead.setAttribute("href", window.location.pathname);

@omarceloribeiro
Copy link
Owner Author

better solution, use the current property of sharepoint webSiteRelativeUrl to set the base parh name

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

1 participant