Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Dear community
We have a multi-language customer website, and we like to set directly in the partial view of the footer an internal link to a subpage.
Is there an easy solution to set a link that will work in every language, respectively goes to the language specific page, like
DE: my.domain.com/kontakt EN: my.domain.com/en/contact FR: my.domain.com/fr/contact
Or do we have to set that together with an extra helper?
Thanks for any suggetions.
Jan
Hi,
You can get the specific content url based on culture, use a default culture code and you can use it like below.
var defaultCulture= "culture code here"; var defaultContent= _publishedContentQuery.Content().Url(culture:defaultCulture);
_publishedContentQuery is IPublishedContentQuery
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Links with razor in partial view according language
Dear community
We have a multi-language customer website, and we like to set directly in the partial view of the footer an internal link to a subpage.
Is there an easy solution to set a link that will work in every language, respectively goes to the language specific page, like
DE: my.domain.com/kontakt EN: my.domain.com/en/contact FR: my.domain.com/fr/contact
Or do we have to set that together with an extra helper?
Thanks for any suggetions.
Jan
Hi,
You can get the specific content url based on culture, use a default culture code and you can use it like below.
_publishedContentQuery is IPublishedContentQuery
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.