prefer to end links to apps with a trailing slash

pull/1/head
ansuz 8 years ago
parent 8a1acc3c37
commit 6e730c7800

@ -63,7 +63,7 @@ define([
tag: 'a', tag: 'a',
attributes: { attributes: {
'class': 'newdoc', 'class': 'newdoc',
'href': '/' + el, 'href': '/' + el + '/',
'target': '_blank' 'target': '_blank'
}, },
content: Messages['button_new' + el] // Pretty name of the language value content: Messages['button_new' + el] // Pretty name of the language value
@ -86,7 +86,7 @@ define([
sessionStorage.login_pass = passwd; sessionStorage.login_pass = passwd;
sessionStorage.login_rmb = remember; sessionStorage.login_rmb = remember;
sessionStorage.login = 1; sessionStorage.login = 1;
document.location.href = '/user'; document.location.href = '/user/';
}); });
$('button.register').click(function (e) { $('button.register').click(function (e) {
var username = $('#name').val(); var username = $('#name').val();
@ -96,10 +96,10 @@ define([
sessionStorage.login_pass = passwd; sessionStorage.login_pass = passwd;
sessionStorage.login_rmb = remember; sessionStorage.login_rmb = remember;
sessionStorage.register = 1; sessionStorage.register = 1;
document.location.href = '/user'; document.location.href = '/user/';
}); });
$('button.nologin').click(function (e) { $('button.nologin').click(function (e) {
document.location.href = '/drive'; document.location.href = '/drive/';
}); });
$('button.knowmore').click(function (e) { $('button.knowmore').click(function (e) {
e.preventDefault(); e.preventDefault();

Loading…
Cancel
Save