vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.49k stars 4.77k forks source link

Back button needs two clicks to go back #397

Open thomask77 opened 6 years ago

thomask77 commented 6 years ago

While reporting Bug #387 , I noticed another problem:

Steps to reproduce:

mkdir bug 
mkdir bug/subdir
cd bug

echo "# Link to [subdir](subdir)" > README.md
echo "# Subdirectory page" > subdir/README.md

vuepress dev

firefox http://localhost:8080    # same result with chromium-browser

Result:

Expected:

ulivz commented 6 years ago

Indeed reproduced it, looks like a bug of vue-router, will sync later.

bayssmekanique commented 6 years ago

As an added note, this does not happen when you use subdir/, so the issue seems to be that the redirect for the trailing / is getting pushed to the history stack when it shouldn't be.

ulivz commented 6 years ago

We're closing this issue as stale as it's more than 20 days without activity, and without an associated Pull Request. Please feel free to continue discussion. We'll reopen this issue if anything actionable is posted.

rohanliston commented 5 years ago

This bug is still happening for me as well. If I omit the trailing slash on a link to a subdirectory (e.g. [See all announcements](/announcements), then I have to hit the back button twice. If I add the trailing slash, I only have to go back once.

I'm also a bit confused about the workflow here. The maintainer reproduced and confirmed the bug, committed to personally fixing it, then closed the issue because of a lack of activity?

tng1027 commented 2 years ago

I am using vue-router 3.5.3 & vue 2.6.11 and I still got this issue? Is there any solutions :(

paurosellfarre commented 1 year ago

Using "vue-router": "^3.6.5", and "vue": "^2.7.14", still with same issue? Did you find any solution, workarround?

Ge6ben commented 3 weeks ago

Same here! "vue-router": "4.3.0",