Copied to clipboard

Flag this post as spam?

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


  • npack 46 posts 292 karma points
    17 days ago
    npack
    0

    IContentFinder not hit when url contains a file extension

    I built an IContentFinder but it isn't even hit if the url contains .pdf at the end. I suspect that something early on in the pipeline is intercepting those requests. Not sure if that something is inside umbraco or even earlier.

    Anybody know how to get those requests to hit my content finder?

    Alternatively, The reason I'm using a contentfinder is I'm trying to build a redirecting middleware that has access to the umbracocontext or umbracohelper but a typical .net middleware throws a "Wasn't able to get an UmbracoContext" when I try to inject it

            app.UseMiddleware<RedirectingMiddleware>();
    
Please Sign in or register to post replies

Write your reply to:

Draft