Skip to content

Commit a444762

Browse files
author
Brian Vaughn
committed
Fixed sidebar detection hack that broke with localized routes
1 parent a15b252 commit a444762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Template extends Component<Props> {
3535
let layoutHasSidebar = false;
3636
if (
3737
location.pathname.match(
38-
/^\/(docs|tutorial|community|blog|contributing|warnings)/,
38+
/\/(docs|tutorial|community|blog|contributing|warnings)\//,
3939
)
4040
) {
4141
layoutHasSidebar = true;

0 commit comments

Comments
 (0)