spfx-navigation icon indicating copy to clipboard operation
spfx-navigation copied to clipboard

Working with Server-Relative URLs

Open jimmywim opened this issue 4 years ago • 0 comments

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?

jimmywim avatar Jul 31 '20 14:07 jimmywim