We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05b8ebb + 38c8afe commit 9483db5Copy full SHA for 9483db5
applications/script.js
@@ -224,6 +224,9 @@ function changeLoaderVisibility({ hide }) {
224
225
function addQueryParamInUrl(queryParamKey, queryParamVal) {
226
const currentUrlParams = new URLSearchParams(window.location.search);
227
+ if (currentUrlParams.has(queryParamKey)) {
228
+ currentUrlParams.delete(queryParamKey);
229
+ }
230
currentUrlParams.append(queryParamKey, queryParamVal);
231
const updatedUrl = '/applications/?' + currentUrlParams.toString();
232
window.history.replaceState(window.history.state, '', updatedUrl);
0 commit comments