From 6e730c7800a58d2457034e132304de2c9efe052a Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 7 Feb 2017 10:53:42 +0100 Subject: [PATCH] prefer to end links to apps with a trailing slash --- customize.dist/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/customize.dist/main.js b/customize.dist/main.js index aad572107..46c325ce7 100644 --- a/customize.dist/main.js +++ b/customize.dist/main.js @@ -63,7 +63,7 @@ define([ tag: 'a', attributes: { 'class': 'newdoc', - 'href': '/' + el, + 'href': '/' + el + '/', 'target': '_blank' }, content: Messages['button_new' + el] // Pretty name of the language value @@ -86,7 +86,7 @@ define([ sessionStorage.login_pass = passwd; sessionStorage.login_rmb = remember; sessionStorage.login = 1; - document.location.href = '/user'; + document.location.href = '/user/'; }); $('button.register').click(function (e) { var username = $('#name').val(); @@ -96,10 +96,10 @@ define([ sessionStorage.login_pass = passwd; sessionStorage.login_rmb = remember; sessionStorage.register = 1; - document.location.href = '/user'; + document.location.href = '/user/'; }); $('button.nologin').click(function (e) { - document.location.href = '/drive'; + document.location.href = '/drive/'; }); $('button.knowmore').click(function (e) { e.preventDefault();