Copied to clipboard

Flag this post as spam?

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


  • Robert Ghafoor 33 posts 95 karma points
    Feb 22, 2014 @ 14:02
    Robert Ghafoor
    0

    Umb 7.0.4 Creating a HttpModule with RewritePath

    I creaded a issue here http://issues.umbraco.org/issue/U4-4280 but in short terms

    i have a httpmodule that rewrites all image urls located in media to ImageGen it also handles the resising for mobile devices etc.

    The problem is that after the module uses RewritePath it gets caught by the UmbracoModule and there it throws a null reference exeption as umbraco.current is used there and that is null becuse this is not a umbraco request...

    so i was wondering can this be fixed by doing someting extra with the module that uses RewritePath is it possible to exclude it or give it a umbaco context or anyting else ?

    RewritePath is just rewriting media/id/image.jpg to ImageGen.ashx?image=..... and what is needed is that the orginal url is not changed.

    please let me know if you think I'm on the right track or not.

     

Please Sign in or register to post replies

Write your reply to:

Draft