Copied to clipboard

Flag this post as spam?

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


  • Breakfast 5 posts 76 karma points
    Jan 12, 2016 @ 12:50
    Breakfast
    0

    Plugin SVG files not available in production, fine in debug

    I am working with a custom plug-in which uses a JavaScript charting library. It all works correctly in debug mode, but when I push it to production I am getting some errors that look like this:

    https://mysite.provider.net/umbraco/amcharts/images/dragIconRoundBig.svg 404 (Not Found)

    In development the same request is like this:

    https://localhost:12345/App_Plugins/MyPlugin/amcharts/images/dragIconRoundBig.svg

    I am guessing that something is going wrong with DependencyHandler.axd not recognising that svg is an image type and consequently failing to route it? Or do I need to put routable content in a specific place within my plug-in folder structure? It looks as though everything still goes through the dependency handler so I don't know whether that would help.

    I had similar problems with some javascript files that I was able to resolve by adding them to the package manifest, but that doesn't seem to have a section for resources other than javascript and css.

  • 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