Copied to clipboard

Flag this post as spam?

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


  • Jorge 37 posts 119 karma points
    Sep 06, 2016 @ 08:57
    Jorge
    0

    Umbraco custom URL get crashed.

    Hi I am using umbraco 7.4.3 and I have this following custom UrlProvider and Event Handler

    UrlProvider: http://screencast.com/t/ng5X2epTpUzV

    My code is very simple, if the content has the doctypealias indicated then return the current url, otherwise just return empty. (my code does not make sense because it was for testing only as I commented my original purpose)

    So while this is my event handler: http://screencast.com/t/yZOtUbbbSk Simply one line just to register my customUrl.

    Now this is the problem, when I run it, my backoffice hangs everytime I clicked to my nodes this is the screenshot http://screencast.com/t/YN5Zt9mr4

    It keeps saying error connection refused. Hope somebody can help me

    Thanks a lot, Jorge

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Sep 06, 2016 @ 10:00
    Dave Woestenborghs
    0

    Hi Jorge,

    The UrlProvider should return null instead of a empty string. Otherwise the url will become a empty string.

    I guess that will fix your problem.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft