Commit 54919d65 authored by Diogo Silva's avatar Diogo Silva
Browse files

CloudBrowser: Updated the resources with the possibility of a prefix

parent 25d176e9
......@@ -28,7 +28,7 @@
<script>
function submitData() {
var code = encodeURIComponent($('#inputAccessKey').val() + '@' + $('#inputRegion').val() + '##' + $('#inputSecretKey').val());
window.location.href = "/auth?code=" + code + "&state=" + url('?').state;
window.location.href = location.pathname.split("/").slice(0,-1).join("/") + "?code=" + code + "&state=" + url('?').state;
return false;
};
</script>
......
......@@ -27,7 +27,7 @@
<h2 class="text-center">Your login has been sent to <a href="https://aws.amazon.com/s3/">Amazon S3</a> server successfully</h2>
<script>
$.ajax({ "data": { "accepted": "true" } });
history.replaceState({}, null, 'success');
history.replaceState({}, null, location.pathname + '/success');
</script>
</div>
</div>
......
......@@ -27,7 +27,7 @@
<h1 class="text-center">An error occurred</h1>
<script>
$.ajax({ "data": { "accepted": "false" } });
history.replaceState({}, null, 'error');
history.replaceState({}, null, location.pathname + '/error');
</script>
</div>
</div>
......
......@@ -27,7 +27,7 @@
<h1 class="text-center">Successfully authenticated</h1>
<script>
$.ajax({ "data": { "accepted": "true" } });
history.replaceState({}, null, 'success');
history.replaceState({}, null, location.pathname + '/success');
</script>
</div>
</div>
......
......@@ -28,7 +28,7 @@
<script>
function submitData() {
var code = encodeURIComponent($('#inputEmail').val() + '##' + $('#inputPassword').val());
window.location.href = "/auth?code=" + code + "&state=" + url('?').state;
window.location.href = location.pathname.split("/").slice(0,-1).join("/") + "?code=" + code + "&state=" + url('?').state;
return false;
};
</script>
......
......@@ -27,7 +27,7 @@
<h2 class="text-center">Your login has been sent to <a href="mega.nz">Mega.Nz</a> successfully</h2>
<script>
$.ajax({ "data": { "accepted": "true" } });
history.replaceState({}, null, 'success');
history.replaceState({}, null, location.pathname + '/success');
</script>
</div>
</div>
......
......@@ -29,7 +29,7 @@
function submitData() {
var code = encodeURIComponent($('#inputUsername').val() +
'@' + $('#inputHost').val() + '##' + $('#inputPassword').val());
window.location.href = "/auth?code=" + code + "&state=" + url('?').state;
window.location.href = location.pathname.split("/").slice(0,-1).join("/") + "?code=" + code + "&state=" + url('?').state;
return false;
};
</script>
......
......@@ -27,7 +27,7 @@
<h2 class="text-center">Your login has been sent to <a href="https://owncloud.org/">OwnCloud</a> host successfully</h2>
<script>
$.ajax({ "data": { "accepted": "true" } });
history.replaceState({}, null, 'success');
history.replaceState({}, null, location.pathname + '/success');
</script>
</div>
</div>
......
Supports Markdown
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