FolderPage: Do not create browser history when adding slug to url (#52695)

This commit is contained in:
Torkel Ödegaard 2022-07-24 18:32:16 +02:00 committed by GitHub
parent d0db3ab306
commit 973be23908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ export const DashboardListPage: FC<Props> = memo(({ match, location }) => {
const path = locationUtil.stripBaseFromUrl(folder.url); const path = locationUtil.stripBaseFromUrl(folder.url);
if (path !== location.pathname) { if (path !== location.pathname) {
locationService.push(path); locationService.replace(path);
} }
return { folder, pageNav: folderNav }; return { folder, pageNav: folderNav };