Copied to clipboard

Flag this post as spam?

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


  • Kin 30 posts 172 karma points
    Apr 20, 2016 @ 15:13
    Kin
    0

    404 trying to load "TraceLogViewer/TraceLog/GetLogData" with virtual path

    Hello,

    my Umbraco installation is at "mywebsite.com/MyVirtualPath/" and it causes me to have a 404 when trying to load /Umbraco/Backoffice/TraceLogViewer/TraceLog/GetLogData

    A potential fix would be to edit EditController.js, line 21 from

    var dataUrl = '/Umbraco/Backoffice/TraceLogViewer/TraceLog/GetLogData?logfileName=' + $routeParams.id;
    

    to

    var dataUrl = 'Backoffice/TraceLogViewer/TraceLog/GetLogData?logfileName=' + $routeParams.id;
    

    What do you think?

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Apr 20, 2016 @ 18:43
    Dan Diplo
    0

    Hi,

    Thanks, I'd never tried it using a virtual path - I wasn't even sure if Umbraco supported virtual directories.

    So does using a relative URL with a prefixing slash sort the issue? Does everything else work OK? If so, I'll put this in the next release.

  • Kin 30 posts 172 karma points
    Apr 20, 2016 @ 18:57
    Kin
    0

    The change I proposed fixed things on my side.

    I don't know if this is called somewhere other than from the Developper tab tho.

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Apr 20, 2016 @ 19:26
    Dan Diplo
    100

    Thanks, I've tried locally and it all seems to work, so this will definitely go in the next release!

  • Kin 30 posts 172 karma points
    Apr 20, 2016 @ 19:52
    Kin
    0

    Thank you. :)

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    May 04, 2016 @ 07:32
    Dan Diplo
    0

    Hi,

    Just to let you know the latest release includes the virtual path fix - thanks for your help :)

    https://www.nuget.org/packages/DiploTraceLogViewer/

    https://our.umbraco.org/projects/developer-tools/diplo-trace-log-viewer/

  • 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