Fix navigate to detail after search (#1589)

Sometimes fails the navigation to a detail page after search.
This happens because of the OverviewPageActions which pushes the value of the filter to history.
This happens on change and on render, which could lead to a navigation back to the overview even after a click on an item in the overview.
This commit is contained in:
Sebastian Sdorra
2021-03-16 11:41:38 +01:00
committed by GitHub
parent 9b254b4a8d
commit ce0e94098e
3 changed files with 22 additions and 10 deletions

View File

@@ -38,6 +38,13 @@ export function withEndingSlash(url: string) {
return url + "/";
}
export function withStartingSlash(url: string) {
if (url.startsWith("/")) {
return url;
}
return "/" + url;
}
export function concat(base: string, ...parts: string[]) {
let url = base;
for (const p of parts) {