From 8e873a6f7781e9cd4668dea74489a4aaff8db8ff Mon Sep 17 00:00:00 2001 From: Kritika Singh Date: Fri, 14 Jun 2019 17:17:10 +0530 Subject: [PATCH] Fix arrow image link for localhost --- static/javascripts/_common-to-all-pages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/javascripts/_common-to-all-pages.js b/static/javascripts/_common-to-all-pages.js index 9295eeefa9..654ea2e75c 100644 --- a/static/javascripts/_common-to-all-pages.js +++ b/static/javascripts/_common-to-all-pages.js @@ -100,13 +100,13 @@ function getPathName() { if (currentHref.indexOf("localhost:1313") >= 0) { return ""; } - return element.prop('pathname').split("/")[1] + return "/" + element.prop('pathname').split("/")[1] } // START: Menu collapse (function() { var addArrowsToAllTopLevelItems = function() { - $(".book-menu nav li.level1.has-children").prepend(``); + $(".book-menu nav li.level1.has-children").prepend(``); }; var showOnlyTopLevelItems = function() {