Skip to content

Commit

Permalink
Ensure activity URL rewriting removes trailing slashes
Browse files Browse the repository at this point in the history
A minor additional fix to avoid accumulating `/`-es over time
  • Loading branch information
szschaler authored Jan 12, 2024
1 parent df410eb commit cbab728
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform/src/ActivityManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ class ActivityManager {
if (currentKey !== "isAuthenticated") {
// TODO: This *assumes* this can only be a panel ID, but that may change over time,
// so this code may need to be improved to only allow access to panel IDs explicitly
result = result.replace("{{ID-" + currentKey + "}}", sessionStorage.getItem(currentKey));
// Removing trailing slash to avoid double slashes
result = result.replace("{{ID-" + currentKey + "}}", sessionStorage.getItem(currentKey).replace(/\/$/, ""));
}
}

Expand Down

0 comments on commit cbab728

Please sign in to comment.