Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Niker 21 posts 91 karma points
    Jun 19, 2019 @ 11:39
    Niker
    0

    It does not call controller action

    Hello, the point is that after entering in the browser / en-US / About does not call me controller action. Controller:

    public class AboutController : Umbraco.Web.Mvc.RenderMvcController
    {
        // GET: About
        public ActionResult About(RenderModel model)
        {
            return View("About", model);
        }
    
    
    }
    

    This happens after adding Home in the Culture and Hostname domain "http: // localhost: 54315".

    And after entering en-Us / Home normally enter the action Controller:

       public class HomeController : Umbraco.Web.Mvc.RenderMvcController
        {
            // GET: Home
            [HttpGet]
            public ActionResult Home(RenderModel model)
    
    
            {
    
                var lang = LanguageHelper.GetLang(Request);
                var home = new Home(model.Content, model.CurrentCulture);
                home.Topic = "aloha";
                //Do some stuff here, then return the base method
                return View("Home", home);
            }
    
    
        }
    
  • 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.

Please Sign in or register to post replies