From 4d49bc50054ed0e0e4664d8464f148eba4dd39f2 Mon Sep 17 00:00:00 2001 From: Maxim Lihachev Date: Wed, 11 Jan 2017 10:54:57 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=B4=D0=B8=D1=80=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5-=D0=B4=D0=B5=D0=BA=D0=BE=D0=B4=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/feminitives.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/feminitives.js b/js/feminitives.js index e7bef98..ef538ae 100644 --- a/js/feminitives.js +++ b/js/feminitives.js @@ -338,7 +338,7 @@ function tr(word) { //Изменение адреса window.location.hash = wd; - URL.opt.href = window.location.href; + URL.opt.href = encodeURIComponent(window.location.href); HTML.dict().innerHTML = ""; HTML.content().innerHTML = ""; @@ -372,8 +372,8 @@ var URL = {opt: {}}; function init(container) { HTML.init(container); - URL.opt.href = window.location.href; - URL.opt.word = window.location.hash.substring(1) || null; + URL.opt.href = decodeURIComponent(window.location.href); + URL.opt.word = URL.opt.href.split('#')[1] || null; if (URL.opt.word) { HTML.input().value = URL.opt.word.replace(/\+/g," ");