Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
- Set language domains (e.g. "http://drupal7.dev" and "http://de.drupal7.dev")
- Or, set language prefixes (e.g. "" and "de")
- 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...
- With language domains the interface language will stay the same as it was
- With language prefixes and the patch in #759844: Overlay does not work with prefixed URL paths applied the overlay is removed
- (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:
- This will probably also affects modules like the domain module which - as far as I remember - depends on being able to switch domains for configuration.
- #284625: Non-localized links in translation table... would make way more sense if language switching while using the overlay module works.
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedSub
Comment #2
plachComment #3
bforchhammer CreditAttribution: bforchhammer commentedAfter looking at some of the overlay javascript code I think there's two parts to this:
http://drupal7.dev/de/admin
is redirected tohttp://drupal7.dev/de/admin#overlay-context=
instead ofhttp://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...
Comment #4
bforchhammer CreditAttribution: bforchhammer commentedAfaik still a problem in D8, which is where it should be fixed first now... right?
Comment #5
nod_#1431076: Overlay does not work with prefixed URL paths , same type of issue and you're right bforchhammer.
Comment #6
xjmIf the patch in #1431076: Overlay does not work with prefixed URL paths resolves this issue, then let's mark this one duplicate.
Comment #7
mtiftI 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.
Comment #8
nod_Overlay is dead to D8 #2088121: Remove Overlay.