Skip to content

Conversation

ykulynych
Copy link

Base href is incorrect for Google Chrome extensions.

Expected: "/baseHref/"
Result: "chrome-extension://cckppebifaokhmbkciccdindfbmacjcj/baseHref/"

Fixed getBaseHref function:
return new URL(baseTag.href).pathname instead return baseTag.href.replace(/^(https?:)?//[^/]*/, '')

@christopherthielen
Copy link
Member

Unfortunately, new URL() is not supported in IE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants