[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[www_shared] branch master updated: fix #6138
From: |
gnunet |
Subject: |
[www_shared] branch master updated: fix #6138 |
Date: |
Wed, 15 Apr 2020 23:51:58 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository www_shared.
The following commit(s) were added to refs/heads/master by this push:
new 6e522ea fix #6138
6e522ea is described below
commit 6e522eaca9b5001985e4cae836174c4230cf63a9
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Apr 15 23:47:16 2020 +0200
fix #6138
---
site.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/site.py b/site.py
index b38f993..38f61c1 100644
--- a/site.py
+++ b/site.py
@@ -89,8 +89,12 @@ class gen_site:
"""
Return URL for the current page in another locale.
"""
- return "../" + other_locale + "/" + in_file.replace(
- root + '/', '').rstrip(".j2")
+ if root == "news":
+ return "../../" + other_locale + "/news/" +
in_file.replace(
+ root + '/', '').rstrip(".j2")
+ else:
+ return "../" + other_locale + "/" + in_file.replace(
+ root + '/', '').rstrip(".j2")
def url_localized(filename):
if root == "news":
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [www_shared] branch master updated: fix #6138,
gnunet <=