Hi,
when I edit a language neutral page in my default language, the path is sth. like "node/138". When I switch to english (with the page still the same, because it is language neutral), the path is "en/node/138".

When click on "View" to abort the edit, checkout can't get the nid from en/node/138/edit, so current and previous nid are both empty and the lock is not released. I guess it needs just a littlte altering of the regular expression in the checkout_get_nid function, but I'm not familiar with regexp in php and can't look at this at the moment.

It also fails for saving, see http://drupal.org/node/245685.

CommentFileSizeAuthor
#1 checkout_get_nid_with_lang.patch782 bytesFrank Steiner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Frank Steiner’s picture

Status: Active » Needs review
FileSize
782 bytes

I changed the regexp to remove everything from the beginning of the string up to the first / and I couldn't think of any situations where we have sth. else but the language prefix in front of "node/", so I guess this works.

Note that cleaning the referer string (see http://drupal.org/node/245685) doesn't help for this issue, because we could move from "en/node/138/edit" straight to "de/node/138", i.e., changing language to "de", so only "de" would be removed from the referer string.

smk-ka’s picture

Status: Needs review » Closed (duplicate)

This issue should have been addressed in the latest patch in #245685: Page being redirected in a way that will never complete.
Marking as duplicate.

Frank Steiner’s picture

Right!