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.

CommentFileSizeAuthor
#3 colorbox-1361242-3.patch683 bytesahwebd
#1 colorbox-1361242-2.patch1.95 KBboran
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

boran’s picture

Status: Active » Needs review
FileSize
1.95 KB

Fixed.
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?

openskymap’s picture

I had the same problem with fr/en.
Patch applied (by hand for colorbox_login.js) -> works fine now.
Thanks.

ahwebd’s picture

FileSize
683 bytes

We 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)

frjo’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Needs review » Fixed

Committed #3 to 7-dev. Thanks for the patch!

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Updated issue summary.