Skip to content

Back button needs two clicks to go back #397

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thomask77 opened this issue May 10, 2018 · 7 comments
Open

Back button needs two clicks to go back #397

thomask77 opened this issue May 10, 2018 · 7 comments
Labels
contribution welcome Contributions welcome type: bug Something isn't working

Comments

@thomask77
Copy link

While reporting Bug #387 , I noticed another problem:

  • Your OS: Xubuntu 18.04
  • Node.js version: v10.0.0
  • VuePress version: 0.8.4
  • Browser version: Firefox 59.0.2 (or chromium-browser 65.0.3325.181)
  • Is this a global or local install: global
  • Which package manager did you use for the install: npm

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
  • Click on "subdir"
  • Click the browser's back button

Result:

  • The first click only changes the browsers window title. Second click needed to go back.

Expected:

  • Go back after the first click.
@ulivz
Copy link
Member

ulivz commented May 10, 2018

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

@ulivz ulivz added the type: bug Something isn't working label May 10, 2018
@nerdoza
Copy link

nerdoza commented May 10, 2018

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 ulivz added the wontfix label Aug 20, 2018
@ulivz
Copy link
Member

ulivz commented Aug 20, 2018

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.

@ulivz ulivz closed this as completed Aug 20, 2018
@rohanliston
Copy link

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?

@kefranabg kefranabg reopened this Sep 12, 2019
@kefranabg kefranabg added the contribution welcome Contributions welcome label Oct 26, 2019
@tng1027
Copy link

tng1027 commented Dec 9, 2021

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

@paurosellfarre
Copy link

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

@Ge6ben
Copy link

Ge6ben commented Aug 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution welcome Contributions welcome type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants