More in this section

Forums / Developing with Sitefinity / Programmatically retrieve url in other language

Programmatically retrieve url in other language

1 posts, 0 answered
  1. Wim
    Wim avatar
    0 posts
    Registered:
    03 Mar 2016
    22 Aug
    Link to this post

    Hi,

    I've the following blogpost url for a dutch blogpost:

    http://localhost:60876/blogs/charlotte/2017/08/17/maak-van-je-sollicitatiegesprek-een-aangenaam-gesprek

    This blogpost also exists in French with this url:

    http://localhost:60876/fr/blogs/charlotte/2017/08/17/faites-de-votre-entretien-d-embauche-un-agréable-entretien

    When I'm in the dutch version of the website, how can I programmatically get the french url of this blogpost? With everything I've tried I only get the first part of the blogpost: http://localhost:60876/fr/blogs/charlotte/

    There also is a language selector on the page. I can see that the language selector holds the correct French url. So it must be possible to do, but I can't find it anywhere.

    Can someone tell me how to get from one language to another language for a certain url?

    thx

    Wim

1 posts, 0 answered