Match multi-edit categories
This commit is contained in:
parent
f34c31a0e8
commit
c03f716a28
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user