Match multi-edit categories

This commit is contained in:
Tom Russell 2019-05-10 16:06:33 +01:00
parent f34c31a0e8
commit c03f716a28

View File

@ -43,7 +43,7 @@ function parseCategoryURL(url) {
if (url === '/') { if (url === '/') {
return defaultCat; return defaultCat;
} }
const matches = /^\/(view|edit)\/([^/.]+)/.exec(url); const matches = /^\/(view|edit|multi-edit)\/([^/.]+)/.exec(url);
const cat = (matches && matches.length >= 3) ? matches[2] : defaultCat; const cat = (matches && matches.length >= 3) ? matches[2] : defaultCat;
return cat; return cat;
} }