1

I'm new vue user, and English is not my native language, so i'll try my best to explain my question, thanks.

in the past time if i want to link root html file, i will add a tag like this <a href="./other/other.html>,it's structure like int this image and now i created a project with webpack vue-cli, but after i click a tag, url change to localhost:8080/other/other.html and nothing happened,the content is still index.html, only url changes.

is there any way to link to static html file or something i make mistake? thanks for your help.

2
  • Please paste the exact code of your <a> tag, how does it look? Commented Sep 28, 2018 at 15:00
  • like this <a href="./src/other/other.html">other</a> , and this tag is in app.vue Commented Sep 28, 2018 at 15:13

1 Answer 1

1

Try using absolute urls in your anchor tags, like this:

<a href="https://localhost:8080/other/other.html"></a>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.