Always check if the permalink is a spec permalink

See code for rationale
pull/21833/head
Travis Ralston 2019-09-30 16:04:49 -06:00
parent 3e5a39d646
commit 199dfa7bf9
1 changed files with 3 additions and 0 deletions

View File

@ -280,6 +280,9 @@ export function makeGroupPermalink(groupId) {
}
export function isPermalinkHost(host: string): boolean {
// Always check if the permalink is a spec permalink (callers are likely to call
// parsePermalink after this function).
if (new SpecPermalinkConstructor().isPermalinkHost(host)) return true;
return getPermalinkConstructor().isPermalinkHost(host);
}