From b33dc71113ce9ba1704c8066d2028e80646e9987 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 29 Sep 2014 22:43:41 -0400 Subject: [PATCH] Fix initial load of fragment URLs --- assets/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); } }]);