This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 3442281  Shorten URLs
3442281 is described below

commit 3442281bb31029c34d4e74e13565874efb0aac0e
Author: Daniel Gruno <[email protected]>
AuthorDate: Fri Nov 20 13:00:19 2020 +0100

    Shorten URLs
---
 webui/js/source/render-email.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/webui/js/source/render-email.js b/webui/js/source/render-email.js
index 17b39f6..af51496 100644
--- a/webui/js/source/render-email.js
+++ b/webui/js/source/render-email.js
@@ -41,7 +41,7 @@ async function render_email(state, json) {
     let list_field = new HTML('div', {class: 'email_kv'});
     let list_key = new HTML('div', {class: 'email_key'}, "List: ");
     let list_value = new HTML('div', {class: 'email_value'},
-        new HTML('a', {href: 'list.html?%s'.format(listname)}, listname)
+        new HTML('a', {href: 'list?%s'.format(listname)}, listname)
         );
     list_field.inject([list_key, list_value]);
     div.inject(list_field);
@@ -87,7 +87,7 @@ async function render_email(state, json) {
     toolbar.inject(replybutton);
     
     // permalink button
-    let linkbutton = new HTML('a', { href: 'thread.html/%s'.format(json.mid), 
title: "Permanent link to this email", class: 'btn toolbar_btn 
toolbar_button_link'}, new HTML('span', { class: 'glyphicon glyphicon-link'}, ' 
'));
+    let linkbutton = new HTML('a', { href: 'thread/%s'.format(json.mid), 
title: "Permanent link to this email", class: 'btn toolbar_btn 
toolbar_button_link'}, new HTML('span', { class: 'glyphicon glyphicon-link'}, ' 
'));
     toolbar.inject(linkbutton);
     
     // Source-view button
@@ -164,7 +164,7 @@ async function render_email_chatty(state, json) {
     toolbar.inject(replybutton);
     
     // permalink button
-    let linkbutton = new HTML('a', { href: 'thread.html/%s'.format(json.mid), 
title: "Permanent link to this email", class: 'btn toolbar_btn 
toolbar_button_link'}, new HTML('span', { class: 'glyphicon glyphicon-link'}, ' 
'));
+    let linkbutton = new HTML('a', { href: 'thread/%s'.format(json.mid), 
title: "Permanent link to this email", class: 'btn toolbar_btn 
toolbar_button_link'}, new HTML('span', { class: 'glyphicon glyphicon-link'}, ' 
'));
     toolbar.inject(linkbutton);
     
     // Source-view button

Reply via email to