Commit 7616b58f authored by Mikaël Salson's avatar Mikaël Salson

Server: Correct redirection to browser.

The trailing # was not always there, therefore the string was not replaced and
we were not redirected at the right place.

Use a regexp instead that is more general and should catch more cases (wherever Vidjil is installed...)
parent a1eb99f2
......@@ -3,8 +3,7 @@
<title>Vidjil</title>
<script>
function init() {
var browser_url = document.URL.replace("/vidjil/default/index#", "/browser")
.replace("/vidjil", "/browser")
var browser_url = document.URL.replace(/\/vidjil\/.*$/, "/browser")
.replace("https", "http")
var database_url = document.URL.replace("/default/index#", "/")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment