[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Update translation links to use SEF URLs

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <692665301ca53_2a17b524290c6@gitlab-sidekiq-low-urgency-cpu-bound-v2-7cc6768567-h6b65.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
aed72424 by Doddy MATABARO at 2025-11-26T02:18:10+00:00
[FIX] Update translation links to use SEF URLs
---
* [FIX] Update translation links to use SEF URLs

See merge request tikiwiki/tiki!9120

- - - - -


1 changed file:

- templates/translated-lang.tpl


Changes:

=====================================
templates/translated-lang.tpl
=====================================
@@ -53,11 +53,11 @@
             <div role="separator" class="dropdown-divider"></div>
             {* First the language of the object *}
             {if $object_type eq 'wiki page'}
-                <a href="tiki-index.php?page={$trads[0].objName|escape:url}&amp;no_bl=y" class="dropdown-item tips active" title="{tr}Current language:{/tr} {$trads[0].objName}">
+                <a href="{$trads[0].objName|sefurl}" class="dropdown-item tips active" title="{tr}Current language:{/tr} {$trads[0].objName}">
                     <em>{$trads[0].langName|escape} ({$trads[0].lang|escape})</em>
                 </a>
             {elseif $object_type eq 'article'}
-                <a href="tiki-read_article.php?articleId={$trads[0].objId}" title="{tr}Current language:{/tr} {$trads[0].objName}" class="dropdown-item tips active">
+                <a href="{$trads[0].objId|sefurl:article}" title="{tr}Current language:{/tr} {$trads[0].objName}" class="dropdown-item tips active">
                     <em>{$trads[0].langName|escape} ({$trads[0].lang|escape})</em>
                 </a>
             {/if}
@@ -65,13 +65,13 @@
             {section name=i loop=$trads}
                 {* For wiki pages *}
                 {if $object_type eq 'wiki page' and $trads[i] neq $trads[0]}
-                    <a href="tiki-index.php?page={$trads[i].objName|escape}&no_bl=y" title="{tr}View:{/tr} {$trads[i].objName}" class="dropdown-item tips {$trads[i].class}">
+                    <a href="{$trads[i].objName|sefurl}" title="{tr}View:{/tr} {$trads[i].objName}" class="dropdown-item tips {$trads[i].class}">
                         {$trads[i].langName|escape} ({$trads[i].lang|escape})
                     </a>
                 {/if}
                 {* For articles *}
                 {if $object_type eq 'article' and $trads[i] neq $trads[0]}
-                    <a  href="tiki-read_article.php?articleId={$trads[i].objId}" title="{tr}View:{/tr} {$trads[i].objName}" class="dropdown-item tips {$trads[i].class}">
+                    <a  href="{$trads[i].objId|sefurl:article}" title="{tr}View:{/tr} {$trads[i].objName}" class="dropdown-item tips {$trads[i].class}">
                         {$trads[i].langName|escape} ({$trads[i].lang|escape})
                     </a>
                 {/if}



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/aed724246e67be0c361601053cdd29ec2217447a

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/aed724246e67be0c361601053cdd29ec2217447a
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.