From b119d1b2d6cd3b6accb7276cf13e1ae5029b2c36 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Tue, 18 Feb 2020 16:36:05 +0200 Subject: [PATCH] sort url param declared optional --- src/common/routesRegexp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/routesRegexp.js b/src/common/routesRegexp.js index b5bf69db4..569f926e5 100644 --- a/src/common/routesRegexp.js +++ b/src/common/routesRegexp.js @@ -12,7 +12,7 @@ const routesRegexp = { urlParamsNames: ['transportUrl', 'type', 'catalogId'] }, library: { - regexp: /^\/library(?:\/([^/]*)\/([^/]*))?$/, + regexp: /^\/library(?:\/([^/]*))?(?:\/([^/]*))?$/, urlParamsNames: ['type', 'sort'] }, search: {