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.
How to handle the different paths?
I have a view with language filter on "Current user's language ".
French path is "/bisses" and German path is "/suonen".
How to get a path by language?
Comments
Comment #1
sahuni CreditAttribution: sahuni commentedDo I need to create 2 displays for my view, one for each language or is there a way to have a path by language inside same display?
Comment #2
Astrid777 CreditAttribution: Astrid777 commentedI cannot wait until your question is answered, I have been struggling with views and internationalization a lot! The problem is getting very urgent.
Comment #3
sahuni CreditAttribution: sahuni commentedIs it a i18n problem or a view problem?
Comment #4
Ludo.RIm waiting for such a feature too.
In the meantime, you can use Site building -> URL aliases -> Add alias (i just figured out this can be done this way, and it seems to work well, even with the language selector).
But i think this should be handled directly in the view, so that all paths can be managed in one place.
Comment #5
sahuni CreditAttribution: sahuni commentedYou are fantastic dolu02, I did not think of that solution.
As you said, I added an alias for german language : bisses => suonen. It works.
It should be handled directly in View, but waiting for that, I'd better your solution instead of 2 displays.
All the best
Comment #6
Ludo.RUnfortunately, it doesnt seems to work when using page arguments like
my-search-page/1,5,8 (works with with the path defined in the view)
ma-recherche/1,5,8 (doesnt work with the alias i created)
Comment #7
docker CreditAttribution: docker commentedSame here
I have the url alias for the product word, and product/% path in my view, but with the transalted url it doesn't work.