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.
Comment | File | Size | Author |
---|---|---|---|
#1 | checkout_get_nid_with_lang.patch | 782 bytes | Frank Steiner |
Comments
Comment #1
Frank Steiner CreditAttribution: Frank Steiner commentedI 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.
Comment #2
smk-ka CreditAttribution: smk-ka commentedThis issue should have been addressed in the latest patch in #245685: Page being redirected in a way that will never complete.
Marking as duplicate.
Comment #3
Frank Steiner CreditAttribution: Frank Steiner commentedRight!