Skip to content

Commit 5d7713c

Browse files
Terms: Fix __community__ page check
1 parent 6ead47f commit 5d7713c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/reducers/terms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export function factory(req) {
329329

330330
// if it's commynity page
331331
let communityId = getCommunityId(req.subdomains);
332-
if (!communityId && req.url.match(/\/community\/.*/)) {
332+
if (!communityId && req.url.startsWith('/__community__')) {
333333
[,, communityId] = req.url.split('/');
334334
// remove possible params like ?join=<communityId>
335335
communityId = communityId ? communityId.replace(/\?.*/, '') : communityId;

0 commit comments

Comments
 (0)