You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed this breaks when you try to navigate to a server relative url (/sites/somesite/sitepages/page.aspx), but it works fine with absolute URLs.
Is there a trick to getting it to work with server relative URLs, other than checking for a / at the start and then sticking on window.location.origin?
The text was updated successfully, but these errors were encountered:
diabhoil
added a commit
to diabhoil/spfx-navigation
that referenced
this issue
Oct 18, 2021
I am not sure what the old line should do, but with server relative URLs that was not working. Adding a double slash in front of sites or /sites breaks the URL for SPO.
Refering to issue estruyf#8
I've noticed this breaks when you try to navigate to a server relative url (
/sites/somesite/sitepages/page.aspx
), but it works fine with absolute URLs.Is there a trick to getting it to work with server relative URLs, other than checking for a
/
at the start and then sticking on window.location.origin?The text was updated successfully, but these errors were encountered: