Steps to reproduce:

  • Enable the Locale and the Overlay module
  • Add a new Language on Languages Configuration page (e.g. German)
  • Edit both languages and either
  • Enable URL detection on the Detection & Selection page, configure URL detection to use "Domain" or "Path prefix" respectively.
  • To be able to tell the interface language, import translations for the 2nd language (e.g. drupal-7.0-alpha6.de.po)
  • Enable the "Language Block" (e.g. add it to the "content" region)
  • Navigate to some admin page and try to switch the language using the language switcher...
  • (In either case if you disable the overlay module -- or try switching language outside the overlay -- then language switching works.)

The priority for this is up for discussion considering that probably not an awful lot of admin users need to switch their interface language all the time...

Some notes:

Comments

Jeff Burnz’s picture

Sub

plach’s picture

bforchhammer’s picture

After looking at some of the overlay javascript code I think there's two parts to this:

  • For language domains the hostname changes when switching domains; as far as I can tell that means that we have to either completely reload the page (i.e. not treat admin links on a different domain as admin links?), or load the language into the same overlay via a different mechanism (not sure that would be a good idea)
  • For language prefixes, I think language switching would work simply if the respective url was recognised as an admin link. At the moment a link to http://drupal7.dev/de/admin is redirected to http://drupal7.dev/de/admin#overlay-context= instead of http://drupal7.dev/#overlay=de/admin (which works fine). (Maybe a solution could be to populate the pathPrefix variable introduced in #759844: Overlay does not work with prefixed URL paths with a regex matching all possible prefixes?)

It's the first time I'm looking at the overlay module, so let me know if I'm completely off or missing something...

bforchhammer’s picture

Version: 7.x-dev » 8.x-dev

Afaik still a problem in D8, which is where it should be fixed first now... right?

nod_’s picture

#1431076: Overlay does not work with prefixed URL paths , same type of issue and you're right bforchhammer.

xjm’s picture

If the patch in #1431076: Overlay does not work with prefixed URL paths resolves this issue, then let's mark this one duplicate.

mtift’s picture

I applied #1431076: Overlay does not work with prefixed URL paths and it does not resolve this issue. I'll take a look more closely at this one.

nod_’s picture

Version: 8.x-dev » 7.x-dev
Issue summary: View changes

Overlay is dead to D8 #2088121: Remove Overlay.