Skip to content

Commit

Permalink
fix anchor link regression
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewhiteley committed Sep 6, 2023
1 parent b6257cd commit fab1fe6
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/taxi.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.modern.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.modern.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/taxi.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@unseenco/taxi",
"description": "A modern page transition library which supports routing, preloading, and additional script reloading.",
"version": "1.5.0",
"version": "1.5.1",
"license": "GPL-3.0-or-later",
"source": "src/taxi.js",
"main": "src/taxi.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export default class Core {
}

// If the fetched url had a redirect chain, then replace the history to reflect the final resolved URL
if (trigger !== 'popstate' && url.raw !== entry.finalUrl) {
if (trigger !== 'popstate' && url.href !== entry.finalUrl) {
window.history.replaceState({}, '', entry.finalUrl)
}

Expand Down

0 comments on commit fab1fe6

Please sign in to comment.