Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit eab6daf

Browse files
KyleMitchrisirhc
authored andcommitted
fix(demo): initial load of fragment URLs
Closes #2762
1 parent 3232b4e commit eab6daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/demo/assets/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ angular.module('ui.bootstrap.demo', ['ui.bootstrap', 'plunker', 'ngTouch'], func
55
//Allows us to navigate to the correct element on initialization
66
if ($location.path() !== '' && $location.path() !== '/') {
77
smoothScroll(document.getElementById($location.path().substring(1)), 500, function(el) {
8-
location.replace(el.id);
8+
location.replace('#' + el.id);
99
});
1010
}
1111
}]);

0 commit comments

Comments
 (0)