Commit f5a3d679 authored by Administrator's avatar Administrator 💬

feat: move the polyglot columns top the `polyglot` prefix

parent 0c4d8ab4
......@@ -189,7 +189,7 @@ class M3P2Plugin extends Plugin
$uri = $this->grav['uri'];
// var_dump($uri); // best doc ftw
if ("polyglot-columns" != $uri->paths(0)) {
if ("polyglot" != $uri->paths(0)) {
return; // perhaps not
}
......
......@@ -56,8 +56,8 @@
{% if uri.paths and not disable_multilingual %}
<li>
{# Ideally we'd give the localized slug, but I can't ->find() it afterwards #}
{# <a href="{{ '/polyglot-columns' ~ uri.path }}">#}
<a href="{{ '/polyglot-columns' ~ page.rawRoute }}">
{# <a href="{{ '/polyglot' ~ uri.path }}">#}
<a href="{{ '/polyglot' ~ page.rawRoute }}">
{% if language_display.select == 'default' or language_display.select == 'flag' %}
<img alt="Rosetta" src="/{{ grav.locator.findResource('plugin://m3-p2/flags/xx.png', false) }}" />
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment