I'm not sure if this is a bug as such, or just whether it's not possible for the redirects to work without the source node having a template. Basically though, I had a set-up whereby I needed a simple but permanent 301 redirect from scratch (no legacy page to redirect, just a structural requirement to redirect from a URL to another). As such my source page from where the redirect was happening had no template assigned. However, I found that this seemed to break not only the source page, but also the redirected page, producing a 404 error. I uninstalled this package but it didn't fix it. So I tried assigning a template to the source page and it started working again.
As I say, perhaps not a bug as such. Perhaps it's just logical, but I thought I'd document it in case anyone came across this.
404 where source node has no template
Hi,
I'm not sure if this is a bug as such, or just whether it's not possible for the redirects to work without the source node having a template. Basically though, I had a set-up whereby I needed a simple but permanent 301 redirect from scratch (no legacy page to redirect, just a structural requirement to redirect from a URL to another). As such my source page from where the redirect was happening had no template assigned. However, I found that this seemed to break not only the source page, but also the redirected page, producing a 404 error. I uninstalled this package but it didn't fix it. So I tried assigning a template to the source page and it started working again.
As I say, perhaps not a bug as such. Perhaps it's just logical, but I thought I'd document it in case anyone came across this.
Nah, this isn't a bug, it's just how umbraco works.
The 301 URL Tracker is basically a handler added to the 404handlers.config.
First umbraco will lookup the url in it's own node system
Then umbraco will look for:
- Alias (umbracoUrlAlias)
- Template
- Profile
After that the 301 URL Tracker kicks in, but I guess the first handler (node handler) is executed, because the url exists internally...
Cool, thanks for clarifying Stefan. Hopefully it nudges someone in the right direction though if they ever come across the same scenario.
Sure, no problem :-)
is working on a reply...
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.