Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN yarn install

COPY ./portal-ui .

RUN yarn install && make build-static
RUN make build-static

USER node

Expand Down
3 changes: 3 additions & 0 deletions portal-ui/src/common/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export class API {
.catch((err) => {
// if we get unauthorized, kick out the user
if (err.status === 401) {
if (window.location.pathname !== "/") {
localStorage.setItem("redirect-path", window.location.pathname);
}
clearSession();
// Refresh the whole page to ensure cache is clear
// and we dont end on an infinite loop
Expand Down
Loading