Skip to content

Commit acaea3b

Browse files
committed
fix base url origin stripping
1 parent 2f02bf5 commit acaea3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/history/base.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ function normalizeBase (base: ?string): string {
193193
// respect <base> tag
194194
const baseEl = document.querySelector('base')
195195
base = (baseEl && baseEl.getAttribute('href')) || '/'
196+
// strip full URL origin
197+
base = base.replace(/^https?:\/\/[^\/]+/, '')
196198
} else {
197199
base = '/'
198200
}

0 commit comments

Comments
 (0)