Skip to content

Commit

Permalink
Update layout.html
Browse files Browse the repository at this point in the history
  • Loading branch information
francescozaia committed Oct 18, 2018
1 parent bb62483 commit 6335a7e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions redirect_template/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
<script>
var document_url = window.location.href.match(/\/\/[^\/]*\/([^\/]*)\/([^\/]*)\/(.*)/);
var language = document_url[1];
var version = document_url[2].replace('latest', 'bozza').replace('stable', 'stabile');
var version = document_url[2]
.replace('latest', 'stabile')
.replace('stable', 'stabile'); //redirecting everything to "stabile"
var document_page = document_url[3];
var redirect_url = [
'https://{{ domain }}',
Expand All @@ -24,4 +26,4 @@
window.location.href = redirect_url;
document.getElementById('redirect').href = redirect_url;
</script>
</html>
</html>

0 comments on commit 6335a7e

Please sign in to comment.