child pages url update when changing parent's slug (only when logged)

19 views
Skip to first unread message

Beniamino Nobile

unread,
Jul 20, 2020, 8:06:13 AM7/20/20
to django CMS developers

Hello I've a problem in my site menu. The django cms version is 3.7.2 I've four languages (en, it, de, fr)

When an anonymous user use the site the menu is correct. When I'm logged from the admin panel i see some strange behaviors: when I've a second level page the url is composed with the parent slug in the wrong language (and if I do any change to the slug an publish it i still see the old slug)


This happen each time i've to chande the parent's slug.

If i also publish again the child pages, then the problems seem to be solved



Here's the code for the menu.html

{% load menu_tags %}

{% for child in children %}
<li class="child{% if child.selected %} selected{% endif %}{% if child.ancestor %} ancestor{% endif %}{% if child.sibling %} sibling{% endif %}{% if child.descendant %} descendant{% endif %}">
    <a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}" title="{{ child.get_menu_title }}">{{ child.get_menu_title }}</a>
    {% if child.children %}
    <ul>
        {% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
    </ul>
    {% endif %}
</li>
{% endfor %}
Reply all
Reply to author
Forward
0 new messages