Copied to clipboard

Flag this post as spam?

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


This forum does not allow new topics to be created, please use the v2 forum from now on.

  • Murray Roke 467 posts 875 karma points c-trib
    Aug 23, 2012 @ 06:29
    Murray Roke
    0

    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.

    Is there any solution to this problem?

     

     

     

  • Murray Roke 467 posts 875 karma points c-trib
    Aug 23, 2012 @ 07:29
    Murray Roke
    0

    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.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Aug 23, 2012 @ 09:50
    Stefan Kip
    0

    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. 

  • Murray Roke 467 posts 875 karma points c-trib
    Aug 23, 2012 @ 10:18
    Murray Roke
    0

    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.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Sep 21, 2012 @ 11:55
    Stefan Kip
    0

    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? 

  • 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.

Please Sign in or register to post replies