1. Go to Home » Administration » Configuration » Regional and language » Languages and enable URL
  2. Install "Language switcher dropdown"
  3. Install "Language icons"
  4. Activate the language switcher and you'll see red boxes at dropdown box (image path contains path prefix)

My Solution:
I changed url to file_create_url in the module's function lang_dropdown_form().
url() seems to add the path prefix, whats not an good idea for file path's.

CommentFileSizeAuthor
lang_dropdown.module.patch757 bytesCodeInject

Comments

chapabu’s picture

Status: Needs review » Reviewed & tested by the community

Works perfectly.

ytsurk’s picture

agree

manfer’s picture

In my opinion this should be pushed as seems the correct way to get the path for icons instead of url that generates a language dependant link.

manfer’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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