diff --git a/frontend/src/Metamaps/Map/index.js b/frontend/src/Metamaps/Map/index.js index 3dd1c531..944a387b 100644 --- a/frontend/src/Metamaps/Map/index.js +++ b/frontend/src/Metamaps/Map/index.js @@ -76,6 +76,8 @@ const Map = { var map = Active.Map var mapper = Active.Mapper + document.title = map.get('name') + ' | Metamaps' + // add class to .wrapper for specifying whether you can edit the map if (map.authorizeToEdit(mapper)) { $('.wrapper').addClass('canEditMap') diff --git a/frontend/src/Metamaps/Router.js b/frontend/src/Metamaps/Router.js index c5f1c9a7..073c1d1b 100644 --- a/frontend/src/Metamaps/Router.js +++ b/frontend/src/Metamaps/Router.js @@ -157,8 +157,6 @@ const _Router = Backbone.Router.extend({ maps: function (id) { clearTimeout(this.timeoutId) - document.title = 'Map ' + id + ' | Metamaps' - this.currentSection = 'map' this.currentPage = id