From 2006b33e6cfe3d2235c0ff1d1f38fac7cea28082 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Tue, 28 May 2019 11:08:26 +0300 Subject: [PATCH] discover/library paths fixed --- src/common/routesRegexp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/routesRegexp.js b/src/common/routesRegexp.js index 9cae7c6ed..e1d0636d8 100644 --- a/src/common/routesRegexp.js +++ b/src/common/routesRegexp.js @@ -9,8 +9,8 @@ const compilePath = (path, options) => { const routesRegexp = { intro: compilePath('/intro'), board: compilePath('/'), - discover: compilePath('/discover/(:type?)/(:catalog?)/(:category?)'), - library: compilePath('/library/(:type?)/(:sort?)'), + discover: compilePath('/discover(?:/(:type|)(?:/(:catalog|)(?:/(:category|))?)?)?'), + library: compilePath('/library(?:/(:type|)(?:/(:sort|))?)?'), calendar: compilePath('/calendar'), search: compilePath('/search'), detail: compilePath('/detail'),