addons screen route regexp updated to match with type only

This commit is contained in:
nklhrstv 2020-09-15 17:37:23 +03:00
parent d7b2588bb8
commit 01a2d5162b

View file

@ -30,8 +30,8 @@ const routesRegexp = {
urlParamsNames: ['type', 'id', 'videoId']
},
addons: {
regexp: /^\/addons(?:\/([^/]*)\/([^/]*)\/([^/]*))?$/,
urlParamsNames: ['transportUrl', 'catalogId', 'type']
regexp: /^\/addons(?:\/([^/]*)(?:\/([^/]*)\/([^/]*))?)?$/,
urlParamsNames: ['type', 'transportUrl', 'catalogId']
},
settings: {
regexp: /^\/settings$/,