spfx-navigation
spfx-navigation copied to clipboard
Working with Server-Relative URLs
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?