miguel-perez/smoothState.js

Relative links stop working after 1 cycle

Open

#200 opened on Jul 31, 2015

View on GitHub
 (6 comments) (0 reactions) (0 assignees)CSS (4,433 stars) (515 forks)batch import
bughelp wanted

Description

Demo: http://dirkvanveghel.nl/smoothbug/portfolio/

Steps to reproduce:

  • Click on About in the menu.
  • Click on Portfolio in the menu. (or the other way around, doesn't matter which page you start)

Expected result: You navigate to the Portfolio page.

Actual result: You navigate 'back' one directory too many, or just back to the root.

Tested in Chrome and FF.

Description: When you switch from Portfolio > About the first time it works, but when you want to navigate back to portfolio again via the same menu it fetches the URL wrong and goes back one directory too many it seems. When you refresh the bug is also gone, so I assume I didn't just code anything wrong. Sorry for my non-native English, or if I'm just doing something wrong.

Contributor guide