X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f7e3ba3851d4ec6e3decaab0d568e492726224dc..02a98d2af6f1fabf567b575c5f2d818688af1594:/platforma/static/js/wiki/base.js diff --git a/platforma/static/js/wiki/base.js b/platforma/static/js/wiki/base.js index 8c626d98..535749c8 100644 --- a/platforma/static/js/wiki/base.js +++ b/platforma/static/js/wiki/base.js @@ -12,7 +12,10 @@ $.wiki.Perspective.prototype.onEnter = function () { // called when perspective in initialized - document.location.hash = '#' + this.perspective_id; + if (this.perspective_id) { + document.location.hash = '#' + this.perspective_id; + } + console.log(document.location.hash); };