Copied to clipboard

Flag this post as spam?

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


  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Feb 09, 2017 @ 17:30
    Nicholas Westby
    0

    Built-in Redirect Dashboard Not Working?

    Since 301 URL Tracker is basically defunct, I've uninstalled it and will be relying on Umbraco's built-in redirect management. That was that plan, anyway; it doesn't seem to be working.

    Here's what I notice:

    • I removed 301 URL Tracker, and confirmed the "InfoCaster" DLL's are no longer in my bin folder.
    • Umbraco 7.5.6.
    • The umbracoRedirectUrl table originally had 600+ entries, but I truncated that table yesterday and nothing new has shown up since.
    • I have a few content finders and URL providers (see code below). I don't think that's an issue, as according to this page there is a ContentFinderByRedirectUrl content finder that I have not removed: https://our.umbraco.org/documentation/reference/routing/URL-Tracking/
    • I have set disableRedirectUrlTracking="false" in umbracoSettings.config just to be certain it's not disabled by default.
    • I have tried renaming, moving, and creating content nodes, and that has not created any entries in the umbracoRedirectUrl table. Similarly, nothing appears in the "Redirect URL Management" dashboard.
    • The "Redirect URL Management" dashboard has no indication that redirect tracking is disabled.

    Here's what shows up in my Umbraco log when I rename a content node:

     2017-02-09 09:09:11,816 [P988/D12/T31] INFO  Umbraco.Core.Publishing.PublishingStrategy - Content 'Nick Testing Redirects Part Five' with Id '4807' has been published.
     2017-02-09 09:09:12,217 [P988/D12/T28] INFO  System.String - NodeId: 4807 | Domain: localhost:54314 | Language : en | Region: us | NodeName: Nick Testing Redirects Part Five
     2017-02-09 09:09:12,217 [P988/D12/T28] INFO  System.String - NodeId: 4807 | Domain: dev.mysite.com | Language : en | Region: us | NodeName: Nick Testing Redirects Part Five
     2017-02-09 09:09:12,217 [P988/D12/T28] INFO  System.String - NodeId: 4807 | Domain: mysite.dev-server.com | Language : en | Region: us | NodeName: Nick Testing Redirects Part Five
     2017-02-09 09:09:12,217 [P988/D12/T28] INFO  System.String - NodeId: 4807 | Domain: win.mysite.com | Language : en | Region: us | NodeName: Nick Testing Redirects Part Five
     2017-02-09 09:09:16,088 [P988/D12/T13] INFO  umbraco.content - Save Xml to file...
     2017-02-09 09:09:17,145 [P988/D12/T13] INFO  umbraco.content - Saved Xml to file.
    

    Here's how I setup my content finders and URL providers in the application starting event:

    // Content finder.
    ContentFinderResolver.Current
        .InsertTypeBefore<ContentFinderByNiceUrl, MySiteContentFinder>();
    ContentFinderResolver.Current.RemoveType<ContentFinderByNiceUrl>();
    
    // 404 content finder.
    ContentLastChanceFinderResolver.Current
        .SetFinder(new MySite404ContentFinder());
    
    // URL provider.
    UrlProviderResolver.Current.RemoveType<DefaultUrlProvider>();
    UrlProviderResolver.Current.InsertType<MySiteUrlProvider>();
    

    Those seem to work fine.

    I have not found any reason why redirect tracking should not be working. Any ideas?

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Feb 09, 2017 @ 22:23
    Nicholas Westby
    0

    I just upgraded to the latest version of Umbraco (7.5.9) and it still isn't working.

    That is, when I rename published pages, no redirects are created.

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Feb 09, 2017 @ 22:33
    Nicholas Westby
    1

    Seems like a bug. Reported here: http://issues.umbraco.org/issue/U4-9511

  • YESU RAJA CHINTA 22 posts 89 karma points
    Sep 11, 2020 @ 20:44
    YESU RAJA CHINTA
    0

    Update the IsMasterServer to true in web.config.

Please Sign in or register to post replies

Write your reply to:

Draft