Skip to content

Commit

Permalink
Fix wrong cookie path
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhiFadlillah committed Oct 11, 2019
1 parent 599afea commit d2906b1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion internal/view/js/page/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default {
var loginUrl = new Url("login", document.baseURI);
loginUrl.query.dst = window.location.href;

document.cookie = "session-id=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT;";
document.cookie = `session-id=; Path=${new URL(document.baseURI).pathname}; Expires=Thu, 01 Jan 1970 00:00:00 GMT;`;
location.href = loginUrl.toString();
}
}
Expand Down
Loading

0 comments on commit d2906b1

Please sign in to comment.