diff --git a/assets/app.js b/assets/app.js index 46fa1d82b9..f8f8f19357 100644 --- a/assets/app.js +++ b/assets/app.js @@ -5,7 +5,7 @@ angular.module('ui.bootstrap.demo', ['ui.bootstrap', 'plunker', 'ngTouch'], func //Allows us to navigate to the correct element on initialization if ($location.path() !== '' && $location.path() !== '/') { smoothScroll(document.getElementById($location.path().substring(1)), 500, function(el) { - location.replace(el.id); + location.replace('#' + el.id); }); } }]);