We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f02bf5 commit acaea3bCopy full SHA for acaea3b
src/history/base.js
@@ -193,6 +193,8 @@ function normalizeBase (base: ?string): string {
193
// respect <base> tag
194
const baseEl = document.querySelector('base')
195
base = (baseEl && baseEl.getAttribute('href')) || '/'
196
+ // strip full URL origin
197
+ base = base.replace(/^https?:\/\/[^\/]+/, '')
198
} else {
199
base = '/'
200
}
0 commit comments