Skip to content

[BUG] "Delete page translation" delete the wrong translation #7605

@adrien-delhorme

Description

@adrien-delhorme

Description

On a page with two translations (for example: English and French) the CMS toolbar menu "Delete translation" does not always delete the selected translation (depending on query parameter language present in URL).

Steps to reproduce

  1. Go to CMS toolbar "<Name of your site>", then "Pages..."
  2. Click on the 👁️ icon on a page with two translations (for example: English and French)
  3. You are now on https://your-domain.tdl/a-page-with-two-translations/?edit&language=en
  4. Go to "Language" menu on CMS toolbar, then "Delete translation", then choose "French..."

Expected behaviour

A modal appears, asking a confirmation to delete French translation.

Actual behaviour

A modal appears, asking a confirmation to delete English translation.

Additional information (CMS/Python/Django versions)

  • Django 3.2
  • django-cms 3.11.3

Do you want to help fix this issue?

  • Yes, I want to help fix this issue and I will join #workgroup-pr-review on Slack to confirm with the community that a PR is welcome.
  • Sorry, I'm really short of time to work on this 😞 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions