Rainlab translate Url translation

I have multilingual pages as following

impressum.htm

##
title = "Impressum"
url = "/impressum"
layout = "default"
meta_title = "IMPRESSUM"

[viewBag]
localeUrl[en] = "/legal-notice"
==

and also

impressum.en.htm

##
title = "Legal Notice"
url = "/legal-notice"
layout = "default"
meta_title = "Legal Notice"
==

to link to page

<li><a href="{{ 'impressum'|page }}">Impressum</a> / </li>

but the content is still from impressum.htm and not from impressum.en.htm

if i go to the url

domain.tld/impressum => works
domain.tld/en/legal-notice => works but content is from impressum.htm

is there anything i am doing wrong?

I saw that the suffix only worked within content.

By that way i made it work but may be direct page will also be a good idea.

1 Like