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
{{ message }}
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
When trying to use goto() in IE11, whole page will reload instead of navigation. As i understand this is because document.baseURI is undefined in IE11, so goto() function logic falls back to location.href = href;.
This can of course be fixed by setting document.baseURI in IE to value of <base> tag that sapper adds, but maybe this should be added in sapper code base.
In goto() definition new URL is made with const target = select_target(new URL(href, document.baseURI)); This can maybe be changed to call function like this instead of document.baseURI directly:
function getBaseURI() {
if (document.baseURI) return document.baseURI;
const base = document.getElementsByTagName('base');
if (base.length > 0) return base[0].href;
return document.URL;
}
The text was updated successfully, but these errors were encountered:
When trying to use goto() in IE11, whole page will reload instead of navigation. As i understand this is because
document.baseURI
is undefined in IE11, so goto() function logic falls back tolocation.href = href;
.This can of course be fixed by setting
document.baseURI
in IE to value of<base>
tag that sapper adds, but maybe this should be added in sapper code base.In goto() definition new URL is made with
const target = select_target(new URL(href, document.baseURI));
This can maybe be changed to call function like this instead ofdocument.baseURI
directly:The text was updated successfully, but these errors were encountered: