This project is read-only.
7
Vote

404 NotFound page without Layout with Rewrite Module

description

NotFound.cshtml shows without Layout if Rewrite Module is enabled.

It can be fixed by ThemedAttribute:
[Themed]
public class HomeController : Controller {
    public ActionResult Rewrite(string path) {
        return new HttpNotFoundResult();
    }
}

comments

Xeevis wrote Apr 18, 2014 at 10:33 PM

Thanks mate, saved me minutes of head scratchin'