fix: Do not copy edit path from headers

chore: Rename url -> path in routeHelpers
closes #5229
This commit is contained in:
Tom Moor
2023-04-22 10:00:09 -04:00
parent 4b5680a16e
commit e2c5fda610
19 changed files with 91 additions and 80 deletions

View File

@@ -37,8 +37,8 @@ import { DocumentSection } from "~/actions/sections";
import env from "~/env";
import history from "~/utils/history";
import {
documentInsightsUrl,
documentHistoryUrl,
documentInsightsPath,
documentHistoryPath,
homePath,
newDocumentPath,
searchPath,
@@ -749,7 +749,7 @@ export const openDocumentHistory = createAction({
if (!document) {
return;
}
history.push(documentHistoryUrl(document));
history.push(documentHistoryPath(document));
},
});
@@ -770,7 +770,7 @@ export const openDocumentInsights = createAction({
if (!document) {
return;
}
history.push(documentInsightsUrl(document));
history.push(documentInsightsPath(document));
},
});