use location.replace when open addon details

This commit is contained in:
nklhrstv 2021-11-05 17:09:14 +02:00
parent 63667fb1ac
commit e505c1e9ae

View file

@ -14,7 +14,7 @@ const useAddonDetailsTransportUrl = (urlParams, queryParams) => {
nextQueryParams.delete('addon');
}
window.location = `#${urlParams.path}?${nextQueryParams}`;
window.location.replace(`#${urlParams.path}?${nextQueryParams}`);
}, [urlParams, queryParams]);
return [transportUrl, setTransportUrl];
};