From 5cd5a80551abae9168bed7f9e51ec6106a887a37 Mon Sep 17 00:00:00 2001 From: mossroy Date: Fri, 2 Aug 2013 10:46:31 +0200 Subject: [PATCH] Add an icon in the bottom bar, to go to the top of the article It needs to modify the way title names are displayed in the URL : replace anchors by ?title= Fixes #36 --- index.html | 3 ++- js/app.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0d04f780..b1070f69 100644 --- a/index.html +++ b/index.html @@ -40,7 +40,7 @@
-
+
diff --git a/js/app.js b/js/app.js index 3fa795a5..91be5d64 100644 --- a/js/app.js +++ b/js/app.js @@ -378,7 +378,7 @@ define(function(require) { function pushBrowserHistoryState(titleName) { if (titleName) { var stateObj = {titleName: titleName}; - window.history.pushState(stateObj, "Wikipedia Article : " + titleName, "#" + titleName); + window.history.pushState(stateObj, "Wikipedia Article : " + titleName, "?title=" + titleName); } }