Skip to content

Commit be0bc42

Browse files
committed
Allow active element selection for REST routing.
1 parent d5fcdb7 commit be0bc42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/js/sb-admin-2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $(function() {
2828

2929
var url = window.location;
3030
var element = $('ul.nav a').filter(function() {
31-
return this.href == url;
31+
return this.href == url || url.href.indexOf(this.href) == 0;
3232
}).addClass('active').parent().parent().addClass('in').parent();
3333
if (element.is('li')) {
3434
element.addClass('active');

0 commit comments

Comments
 (0)