Closed ramonitor closed 5 months ago
On a root site (i.e. https://customer.sharepoint.com) the toRelativeUrl helper now returns / instead of returning a relative url with // appended to the domain (//customer.sharepoint.com). On non-root sites the behaviour remains as-is.
toRelativeUrl
/
//
//customer.sharepoint.com
Note; this PR also fixes browser hanging issue with the regex replace on absolute URLs without trailing slash.
What's in this Pull Request?
On a root site (i.e. https://customer.sharepoint.com) the
toRelativeUrl
helper now returns/
instead of returning a relative url with//
appended to the domain (//customer.sharepoint.com
). On non-root sites the behaviour remains as-is.