Skip to content

Commit

Permalink
Remove leading slash from invalid path parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mdapena authored Oct 17, 2024
1 parent e932415 commit 05fc20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
window.location.replace(pathname.replace("/pyventus", "/pyventus/0.5") + search + hash);
} else {
// If a version is found, redirect to the 404 page of the documentation for that version, including missing path
window.location.replace(`/pyventus/${version}/404?path=${encodeURIComponent(`/${pathname.split('/').slice(3).join('/')}`)}`);
window.location.replace(`/pyventus/${version}/404?path=${encodeURIComponent(pathname.split('/').slice(3).join('/'))}`);
}
})(); // Execute immediately
</script>
Expand Down

0 comments on commit 05fc20b

Please sign in to comment.