[Kentico MVC] SiteContext.CurrentSiteName is empty

Daniel Nistreanu asked on October 30, 2019 18:37

A

Correct Answer

Daniel Nistreanu answered on October 31, 2019 14:15

Solution: Check your PresentationUrl in Kentico to match Application Url (together with port), redirect/rewrite rules and routing.

0 votesVote for this answer Unmark Correct answer

Recent Answers


David te Kloese answered on October 31, 2019 14:18

Have you tried the suggestions on oncurrentsite() and onsite (cms siteprovider sitecontext currentsitename) give system nullreferenceex

What type of urls do you use? HTTP/HTTPS... localhost... azure urls temp devleopment url... special port numbers?

0 votesVote for this answer Mark as a Correct answer

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