Copied to clipboard

Flag this post as spam?

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


  • wtct 78 posts 99 karma points
    Jun 08, 2016 @ 10:55
    wtct
    0

    301 UrlTracker and NotFoundHandlers conflict

    I have just upgraded Umbraco from 4.7.1 to 6.2.6. Removed old v1.3 301 UrlTracker and instaled v3.11.

    Unfortunately current UrlTracker fires after all 404 not found handlers.

    Now we can't set te order of each handlers so if any page is found by not found handler than the UrlTracker doesn't look for any page.

    Is it possible to set order or register UrlTrackerModule manualy in web.config?

  • wtct 78 posts 99 karma points
    Jun 08, 2016 @ 12:25
    wtct
    0

    Now I see this piece of code:

    [assembly: System.Web.PreApplicationStartMethod(typeof(UrlTrackerPreApplicationStart), "PreApplicationStart")]
    namespace InfoCaster.Umbraco.UrlTracker
    {
        public class UrlTrackerPreApplicationStart
        {
            public static void PreApplicationStart()
            {
                Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleUtility.RegisterModule(typeof(UrlTrackerModule));
                HostingEnvironment.RegisterVirtualPathProvider(new EmbeddedResourcesVirtualPathProvider());
            }
        }
    }
    

    so the HttpModule is registered at PreApplicationStart().

    It will be nice to check if this HttpModule is added in web.config otherwise add it at runtime. It will be very helpful to manage order of HttpModules.

  • Connie DeCinko 931 posts 1158 karma points
    Jan 10, 2017 @ 18:17
    Connie DeCinko
    0

    Did you figure this out? Do we have to disable our NotFoundHandlers?

  • Andy Felton 140 posts 407 karma points c-trib
    Jun 22, 2018 @ 05:54
    Andy Felton
    0

    Hi,

    Know this is an old post - but did you find a solution to it?

    Thanks Andy

Please Sign in or register to post replies

Write your reply to:

Draft