Skip to content

Commit ff9c4d4

Browse files
harunurhandrjova
authored andcommitted
ui: fix bug with trailing slash in search pages
* INSPIR-3237
1 parent 05352f6 commit ff9c4d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/middlewares/syncLocationWithSearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function isLocationSyncedWithSearchQuery(namespace, state) {
3030

3131
// TODO: move pathnameToNamespace logic to reducer (probably)
3232
function pathnameToSearchNamespace(pathname) {
33-
return pathname.substring(1);
33+
return pathname.split('/')[1];
3434
}
3535

3636
// FIXME: this can be moved to reducer?

0 commit comments

Comments
 (0)