diff --git a/static/js/pad2.js b/static/js/pad2.js index fca3f6009..c4853c734 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -175,7 +175,7 @@ function handshake() var padId = document.location.pathname.substring(document.location.pathname.lastIndexOf("/") + 1); padId = decodeURIComponent(padId); // unescape neccesary due to Safari and Opera interpretation of spaces - document.title = document.title + " | " + padId.replace( /_/g, " " ); + document.title = padId.replace( /_/g, " ") + " | " + document.title; var token = readCookie("token"); if (token == null) diff --git a/static/timeslider.html b/static/timeslider.html index f64cf3cac..fddfb58ef 100644 --- a/static/timeslider.html +++ b/static/timeslider.html @@ -65,7 +65,7 @@ padId = decodeURIComponent(urlParts[urlParts.length-2]); //set the title - document.title = document.title + " | " + padId.replace( /_/g, " "); + document.title = padId.replace( /_/g, " ") + " | " + document.title; //ensure we have a token token = readCookie("token");