Fix Category-Metadata path parsing
## Issue 6849 category metadata shows in place of creator channel when using vanity URL
This commit is contained in:
parent
4dfcb4645a
commit
90c469454a
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ function escapeHtmlProperty(property) {
|
|||
}
|
||||
|
||||
function getCategoryMeta(path) {
|
||||
const page = Object.keys(CATEGORY_METADATA).find((x) => path.endsWith(x) || path.endsWith(`${x}/`));
|
||||
const page = Object.keys(CATEGORY_METADATA).find((x) => path === `/$/${x}` || path === `/$/${x}/`);
|
||||
return CATEGORY_METADATA[page];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue