Getting the site cultural root url
# help-with-umbraco
c
Having an issue setting the appropriate culture/domain root on home links in a 3 language site. If I use "/" then it goes back to the default en site even if I'm in the fr site. I've tried detecting culture and then splitting off the last "/" if there is one, but that just gets me into trouble further down the nested nodes. The domain urls are in the form of mysite.com/uk and mysite.com/fr, etc. I've seen this:
@Model.GetCultureFromDomains(ContextAccessor, DomainHelper)
in the docs but not sure if it's what I'm looking for nor how to use it anyway as there's no example. "/" just gets me back to mysite.com 😦 I suppose if I could force the site always to be in one of the languages then that would help a lot. Does anyone else have a nice solution for this? Thanks.
m
Model.Root().Url()
c
The time I've spent on this, cutting & splicing, etc. and it's so simple in the end. Thanks 🙂