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.
Problem/Motivation
If the current site language is in any language other than english, the link created does not have that language code. Due to this it always shows the content based on site's default language.
Proposed resolution
The module should detect current language and the link should be generated based on that.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#10 | drupal-default-prefix.png | 51.19 KB | Nightwalker3000 |
#10 | views-export.txt | 3.06 KB | Nightwalker3000 |
#10 | module-list.txt | 6.65 KB | Nightwalker3000 |
#10 | drupal-fr-prefix.png | 51.74 KB | Nightwalker3000 |
#10 | drupal-de-prefix.png | 54.57 KB | Nightwalker3000 |
Comments
Comment #2
subhojit777Comment #4
alinouman CreditAttribution: alinouman commentedIs this issue fixed in 1.2 version? Because I have enable the module and the issue is still there.
Comment #5
subhojit777What exactly is the issue that you are facing.
Comment #6
rudam CreditAttribution: rudam commentedIt does not get language code in the URL... both 7.x-1.2 and 7.x-1.1
Comment #7
subhojit777Comment #8
subhojit777@rudam Which module you are using for translation. Because, I tested with Core's Locale and Content Translation module, and the language code was present in the URL.
Comment #9
Nightwalker3000 CreditAttribution: Nightwalker3000 as a volunteer commentedHi,
same issue here. I'm using the Internationalization Module for Translation.
Comment #10
Nightwalker3000 CreditAttribution: Nightwalker3000 as a volunteer commentedHi,
for better understanding this issue I created a new minimal Drupal installation and generated some Multilanguage Content and tried to link them with language Prefix. It looks like, that “Views base url” doesn’t add the Language prefix to content. Screenshots are attached to this issue. I’ve also added my View and enabled Modules to it.
I guess there should be an API call in function render($values) which determines which language is active and also if URL Prefix for languages are used and append it to the Link.
Comment #11
subhojit777i18n
specific API should be used to generate the URL.