mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user