Trailing slash issue after upgrading umbraco from 4.6.1 to 4.7.2
Hi
I am upgraded umbraco from 4.6.1 to 4.7.2
I have found 302 redirect tracker is not redirecting, and after a bit of investigation I've found the query prior to the upgrade was like so:
exec sp_executesql N'SELECT NodeId FROM infocaster301 WHERE OldUrl = @url AND IsRegex = 0',N'@url nvarchar(55)',@url=N'/sector-marketing/business-events/business-events-news/'
Which produces 1 result
the query after the upgrade is like so:
exec sp_executesql N'SELECT NodeId FROM infocaster301 WHERE OldUrl = @url AND IsRegex = 0',N'@url nvarchar(54)',@url=N'/sector-marketing/business-events/business-events-news'
Which produces 0 results
This means the 4.6.1 version of the website redirects correctly and the 4.7.2 version does not.
I have a 4.6.1 website and a 4.7.2 website both versions of the same site both pointing to the same database for testing.
in umbraco 4.7.2 I see this
Trace Information
Category Message From First(s) From Last(s)
...
request handler current url '/sector-marketing/business-events/business-events-news'
In umbraco 4.6.1 I see this
Trace Information
Category Message From First(s) From Last(s)
...
request handler current url '/sector-marketing/business-events/business-events-news/'
This is before the 301 handler is invoked,
It seems to me that umbraco changed how it passes urls into 404 handlers and this has caused the problem.
There is a temporary work-around in that thread, by using a SQL trigger. I will try to look into this soon though, haven't been able to reproduce it myself yet.
I made a quick fork and slapped a trailing slash on whatever umbraco passes to me (if it didn't have one) it works in my scenario but I don't know what it will do in edge cases.
Trailing slash issue after upgrading umbraco from 4.6.1 to 4.7.2
Hi
I am upgraded umbraco from 4.6.1 to 4.7.2
I have found 302 redirect tracker is not redirecting, and after a bit of investigation I've found the query prior to the upgrade was like so:
Which produces 1 result
the query after the upgrade is like so:
Which produces 0 results
This means the 4.6.1 version of the website redirects correctly and the 4.7.2 version does not.
Is there any solution to this problem?
I have a 4.6.1 website and a 4.7.2 website both versions of the same site both pointing to the same database for testing.
in umbraco 4.7.2 I see this
In umbraco 4.6.1 I see this
This is before the 301 handler is invoked,
It seems to me that umbraco changed how it passes urls into 404 handlers and this has caused the problem.
I guess so, you're not the only one with this problem: http://our.umbraco.org/projects/developer-tools/301-url-tracker/bug-reports/31445-301-URL-tracker-doesn't-work-after-upgrade-to-umbraco-472
There is a temporary work-around in that thread, by using a SQL trigger.
I will try to look into this soon though, haven't been able to reproduce it myself yet.
I made a quick fork and slapped a trailing slash on whatever umbraco passes to me (if it didn't have one) it works in my scenario but I don't know what it will do in edge cases.
I just uploaded version 1.4 of the 301 URL Tracker. This issue should be fixed.
Could you test this and let me know here?
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.