Copied to clipboard

Flag this post as spam?

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


  • David Peck 690 posts 1896 karma points c-trib
    Jul 13, 2010 @ 11:36
    David Peck
    0

    NiceUrl/ NiceUrlFullPath acting out

    I have a user control which has a public member, through which I pass a pageId. The user control then tries to get the url of the page for the purpose of a redirect. However, both NiceUrl functions seem to be returning funny values:

    NiceUrl : ~/StudentDashboard.aspx 
    NiceUrlFullPath : /schools/schools/vle/students/dashboard.aspx 

    When I was expecting ~/Student/Dashboards.aspx and /schools/vle/students/dashboard respectively.

    The site is running in a virtual directory called 'schools', and my root node also called 'schools' (but this shouldn't show in the url right?). I'm using version Umbraco 4.5.

    Is this a bug?

    Cheers,

    David

  • David Peck 690 posts 1896 karma points c-trib
    Jul 13, 2010 @ 12:03
    David Peck
    0

    Hmm... Just realised that the NiceUrl output mentioned above is not correct, and was being falsely output. I'll update once I've got a genuine output.

  • David Peck 690 posts 1896 karma points c-trib
    Jul 13, 2010 @ 12:24
    David Peck
    0

    Ok. Just a problem our end. NiceUrl is working absolutely fine. My public property was a int? which was preventing the value being passed in and it was then falling back to a default value from our dev environment. Changing it to int then works fine.

    NiceUrlFullPath works as it is supposed to, adding in the root node in to the path. No idea why you'd want this, but there is no fault here. Apologies.

Please Sign in or register to post replies

Write your reply to:

Draft