How to disable /TemplateName altTemplate behaviour in v6?
Hi
OK, so if I browse to localhost/TemplateName, Umbraco treats this as localhost?altTemplate=TemplateName and renders the home page using the TemplateName template.
I'm not using altTemplate in this particular site - is it possible to disable this behaviour?
Umbraco natively support urls such as /foo/bar/template and renders page /foo/bar using the specified template. This is provided by the ContentFinderByNiceUrlAndTemplate content finder, which is at the moment not directly used but is substituted to the old legacy umbraco.SearchForTemplate "not found" handler.
So assuming you haven't changed anything in the content finders setup, you just want to remove that legacy handler. This would be in ~/config/404handlers.config, where you need to remove the line that contains <notFound assembly="umbraco" type="SearchForTemplate" />.
How to disable /TemplateName altTemplate behaviour in v6?
Hi
OK, so if I browse to localhost/TemplateName, Umbraco treats this as localhost?altTemplate=TemplateName and renders the home page using the TemplateName template.
I'm not using altTemplate in this particular site - is it possible to disable this behaviour?
Thanks,
Mike
Umbraco natively support urls such as /foo/bar/template and renders page /foo/bar using the specified template. This is provided by the ContentFinderByNiceUrlAndTemplate content finder, which is at the moment not directly used but is substituted to the old legacy umbraco.SearchForTemplate "not found" handler.
So assuming you haven't changed anything in the content finders setup, you just want to remove that legacy handler. This would be in ~/config/404handlers.config, where you need to remove the line that contains <notFound assembly="umbraco" type="SearchForTemplate" />.
Let me know if it works
Stephan
Hi Stephen - works perfectly. Thanks :)
is working on a reply...