From 366b61c32d43d8652bf2ae085deab72f717bcd32 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 5 Feb 2017 18:53:57 +0100 Subject: [PATCH] adding document title in new history state --- js/privatebin.js | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 31fa44f9..850dfc93 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -1121,7 +1121,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) { deleteUrl = helper.scriptLocation() + '?pasteid=' + data.id + '&deletetoken=' + data.deletetoken; controller.showStatus(''); controller.errorMessage.addClass('hidden'); - history.pushState({type: 'newpaste'}, '', url); + history.pushState({type: 'newpaste'}, document.title, url); $('#pastelink').html( i18n._( diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 668b2e91..b4572219 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -69,7 +69,7 @@ if ($MARKDOWN): - + diff --git a/tpl/page.php b/tpl/page.php index 362e8878..491be5da 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -47,7 +47,7 @@ if ($MARKDOWN): - +