Description
Version
2.5.3
Reproduction link
https://output.jsbin.com/yivetu/
Steps to reproduce
click the index
href
What is expected?
Index url should be: https://www.example.com/
now it is: https://www.example.com/https:/www.example.com/news/index.html/
What is actually happening?
vue-router can't parse base url
This example is from the html spec about base
tag https://html.spec.whatwg.org/multipage/semantics.html#the-base-element
In this example, a base element is used to set the document base URL:
<!DOCTYPE html>
<html lang="en">
<head>
<title>This is an example for the <base> element</title>
<base href="https://www.example.com/news/index.html">
</head>
<body>
<p>Visit the <a href="archives.html">archives</a>.</p>
</body>
</html>
The link in the above example would be a link to "https://www.example.com/news/archives.html".
If the archives's
href start with /
, the link would be a link to "https://www.example.com/archives" (whithout /news/
) . And vue-router
now doesn't support set base with: https://www.example.com/news/index.html
.
some other maybe related discussions: remix-run/history#94