mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-16 13:30:23 +01:00
fix: incorrect pathname format for app.previousUrl
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user