Skip to content

Commit c773c1d

Browse files
author
Mauricio de Oliveira
committed
Highlight menu in homepage.
1 parent 7fd09c9 commit c773c1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
console.log("pathname = '" + pathname + "'");
171171

172172
// exclude home page
173-
if (!pathname.match(/\/[^\/]\//)) {
173+
if (!pathname.match(/\/[^\/]*\//)) {
174174
// Make current page active
175175
$('.nav-item a[href^="' + pathname + '"]').addClass('nav-item active');
176176

0 commit comments

Comments
 (0)