Skip to content

Commit

Permalink
fix: incorrect pathname format for app.previousUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed May 22, 2019
1 parent 106d52a commit a97e97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/ajaxify.js
Expand Up @@ -71,7 +71,7 @@ $(document).ready(function () {
apiXHR.abort();
}

app.previousUrl = !['reset'].includes(ajaxify.currentPage) ? window.location.pathname : app.previousUrl;
app.previousUrl = !['reset'].includes(ajaxify.currentPage) ? window.location.pathname.slice(config.relative_path.length) : app.previousUrl;

url = ajaxify.start(url);

Expand Down

0 comments on commit a97e97b

Please sign in to comment.