Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
After logging in one gets the above message.
If the french language is selected, a similar effect:
La page demandée "/fr/fr" n'a pas pu être trouvée.
A patch is supplied, please review and consider committing to colorbox.
Comment | File | Size | Author |
---|---|---|---|
#3 | colorbox-1361242-3.patch | 683 bytes | ahwebd |
#1 | colorbox-1361242-2.patch | 1.95 KB | boran |
Comments
Comment #1
boran CreditAttribution: boran commentedFixed.
So the problem is handling of language prefixes on the destination, Drupal.settings.basePath() doesn't understand langs. So strip the lang prefix in colorbox_init() and pass the result to the login box javascript.
It is presumed that language prefixes are always two characters..
Could others please test, also on mono lingual sites?
Comment #2
openskymap CreditAttribution: openskymap commentedI had the same problem with fr/en.
Patch applied (by hand for colorbox_login.js) -> works fine now.
Thanks.
Comment #3
ahwebd CreditAttribution: ahwebd commentedWe can strip off the language prefix only with javascript (Drupal.settings.pathPrefix)
(Note: to view the "Drupal.settings" variable, type: "console.log(Drupal.settings);" in chrome console or firebug console)
Comment #4
frjo CreditAttribution: frjo commentedCommitted #3 to 7-dev. Thanks for the patch!
Comment #5.0
(not verified) CreditAttribution: commentedUpdated issue summary.