From ba159e06d2548873969d2c04eab12b798b2af65d Mon Sep 17 00:00:00 2001 From: Daniel Rodrigues Date: Fri, 9 Jul 2021 16:03:07 -0400 Subject: [PATCH] Persist pathname when updating location --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 12cd876..9b89b98 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ Url.prototype.apply = function(params){ params = '?' + params; } - locationBar.update(params, {trigger: true}); + locationBar.update(location.pathname + params, {trigger: true}); } Url.prototype.set = function(param, value){