Copied to clipboard

Flag this post as spam?

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


  • Johan 50 posts 174 karma points
    Aug 19, 2014 @ 04:13
    Johan
    0

    MVC form posting and RewritePath function?

    I have and MVC umbraco application with a MVC form working on most of my pages. The form is on the bottom of every page. Now I have 3 pages on my site that are using a RewritePath because I am using swedish characters in my urls. The official url to the visitor ishttp://www.k2search.se/rekryteringsföretag/ but the real url inside the app is http://www.k2search.se/rekryteringsfoeretag/ . This is solved with the function RewritePath and a Redirect as well. This is built with the old webforms technic and that is going to be changed very soon. In my development this is already in MVC. But this Redirect and RewritePath is stopping my MVC form to execute properly. How shall this Redirect and RewritePath be done in the MVC world?

  • Johan 50 posts 174 karma points
    Aug 19, 2014 @ 15:10
    Johan
    0

    How does it work with adding a routes.MapRoute routine in an umbraco project. I dont want to rebuild any umbraco core dll but just add in a few speciel redirect rules to make my app with perfect urls

    routes.MapRoute("Slug",// Route name"pages/{slug}",// URL with parametersnew{controller="Home",action="Content"}// Parameter defaults);

Please Sign in or register to post replies

Write your reply to:

Draft