Skip to content

Commit

Permalink
Feature/767 redirect to null (#771)
Browse files Browse the repository at this point in the history
* add empty string as fallback in case of null for redirect path

* update version

* Make redirect to root explicit

* update changelog and version
  • Loading branch information
kcinay055679 authored May 27, 2024
1 parent b930c6e commit 8ee9adb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.2
5.3.4
7 changes: 6 additions & 1 deletion public/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
## Version 5.3.2
## Version 5.3.4
- Fix a bug that prevents users from editing a credential after a search.

## Version 5.3.3
- Fix wrong translation in navbar

## Version 5.3.2
- Prevent browser to redirect to cryptopus.puzzle.comnull after autologout

## Version 5.3.1
- Fix a bug that prevents users from deleting other users.

Expand Down
7 changes: 5 additions & 2 deletions public/javascript/wake_up.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ document.addEventListener("DOMContentLoaded", () => {
function redirect() {
const path = sessionStorage.getItem("previousPath")
sessionStorage.removeItem("previousPath")
const href= window.location.origin + path;
window.location.replace(href);
if (path) {
window.location.replace(window.location.origin + path);
}else{
window.location.replace(window.location.origin);
}
}

0 comments on commit 8ee9adb

Please sign in to comment.