Closed olafgrabienski closed 2 weeks ago
PR submitted.
The PR actually sends the language object to l()
in order to get the aliased path when available. Before the PR, there was no attempt to get the aliased path, despite the description of the views field!
Great. This PR fixes the problem for me.
Same here, works for me as well (with slightly different language settings). Many thanks!
Code looks good too.
Thanks, @herbdool! What do you think about the PR code for the related issue #6745?
I merged https://github.com/backdrop/backdrop/pull/4896 into 1.x and 1.29.x. Thank you @argiepiano, @olafgrabienski, @robertgarrigos, and @herbdool!
Description of the bug
This is a follow-up to #6745 (about views Title fields with links). This one here is about views Path fields:
Paths to translated content which is listed in views, e.g. on the "Manage content" page, aren't rendered as the aliased path. Path aliases in views work only, if interface and content language are the same.
Steps To Reproduce
To reproduce the behavior:
example.com/hello-world
.example.com/de/hallo-welt
.Actual behavior
The path of the English page "Hello World" is the alias
/hello-world
(as expected). The path of the translation "Hallo Welt" isn't an alias but the node ID path, e.g./node/7
.Expected behavior
The path of the translation "Hallo Welt" is an alias, e.g.
/de/hallo-welt
.