I cant figure out how to create route for multilingual public member page.
For now i have route only for one culture supplier-profile/{id}, but i need it also for this one en/supplier-profile/{id}
public class SupplierProfileRoute : ComponentComposer<RegisterCustomRouteComponent>
{
}
public class RegisterCustomRouteComponent : IComponent
{
public void Initialize()
{
RouteTable.Routes.MapUmbracoRoute("SupplierProfile", "supplier-profile/{id}", new
{
controller = "SupplierProfile",
action = "SupplierProfile",
id = UrlParameter.Optional
}, new UmbracoVirtualNodeByIdRouteHandler(1140));
}
public void Terminate()
{
throw new NotImplementedException();
}
}
Route for multilingual page
Hi all,
I cant figure out how to create route for multilingual public member page. For now i have route only for one culture
supplier-profile/{id}
, but i need it also for this oneen/supplier-profile/{id}
Hi Josip,
Did you configure culture and hostnames?
Hi Erik-Jan,
yes i did, it looks the same like on your screenshoot.
Ok i found the solution, it was simple.
If someone have better idea, please post it here.
I have created one more route under the first one like this:
This is the only thing i changed :
"SupplierProfile", "supplier-profile/{id}"
to"SupplierProfileEn", "en/supplier-profile/{id}"
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.