Redirect Alternative URL to PreferredCulture

Alexander Privacy asked on September 26, 2022 10:02

When we used K11 we were able to create a Page Alias and redirect that specific Page alias to the current PreferredCulture from the User.

For example We had a URL and

In Kentico 11 we have created a Page Alias like and this redirected to the EN or DE version, based on the User's current language.

Now we are using K12 (with latest Hotfix) MVC and the closest thing to Page Alias are Alternative URLs but they are not redirect to the other Culture.

  • Is there an easy way to have the same function as we had before?
  • Optional: Is there a certain function in K13?

Recent Answers

Juraj Ondrus answered on September 27, 2022 07:35

You can add a culture specific URL slug for a page. And the alternative URLs are also based per culture. So, you can create different alternative URLs for different culture versions of a page, just switch to given culture.

0 votesVote for this answer Mark as a Correct answer

Alexander Privacy answered on September 27, 2022 08:25

Thank you for the fast answer Juraj.

This is sadly not what I want, let me explain a Use-Case for my request.

A client has Kentico 12 MVC Page that has multiple languages. Now they have an Event where you can register. They want also to Print something and want to use a Short URL like

This URL should lead to the correct culture version of the page like it has been on the old K11 pages.

Basically, i ask for one Single URL that redirects to the page, based on the current culture of the visitor.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on September 27, 2022 09:03

So, how is your project setup? How is it detecting the culture? When using Content tree based routing there are two options how the culture is detected: domain name - so you have separate domains for each culture or, by language prefix in the URL.
Or, you van use custom routing and define your own rules - you have the power to do so and do with the URLs whatever you want.
Or, add a code logic to your controller - you can check what is the user's culture or brwser culture and get the data in given culture.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.