FIX: Do not set null value to remove cookie

This commit is contained in:
Vinoth Kannan 2018-10-16 06:48:54 +05:30
parent 19d7543004
commit e3c6dd26c4
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
$.cookie("destination_url") || options.destination_url;
if (destinationUrl) {
// redirect client to the original URL
$.cookie("destination_url", null);
$.removeCookie("destination_url");
window.location.href = destinationUrl;
} else if (window.location.pathname === Discourse.getURL("/login")) {
window.location.pathname = Discourse.getURL("/");