When clicking on unlock on a content with multiple translations, you get redirected to the original language.

Need to check if this only applies to unlock button of JS version.

How to reproduce:

* Create a content where content lock is enabled
* Create a translation of this content
* Click Edit on the content in the translated language (not original)
* Click Unlock
* Check url, if there is a destination added (e.g. on edit form a destination was set), remove this part of the url and reload the page
* Click Break lock
* You will be redirected to node view of the original language - Expected you will be redirected to the node view of the translated language

CommentFileSizeAuthor
#2 2925186-1.patch2.82 KBkfritsche

Comments

kfritsche created an issue. See original summary.

kfritsche’s picture

Assigned: kfritsche » Unassigned
Status: Active » Needs review
StatusFileSize
new2.82 KB

Simple patch, which fixes this issues in both scenarios (with and without enabled JS locking)

kfritsche’s picture

Issue summary: View changes
hchonov’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me. Thank you!

chr.fritsch’s picture

Status: Reviewed & tested by the community » Fixed

Awesome. Thanks, @kfritsche

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.