Copied to clipboard

Flag this post as spam?

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


  • Rob Stevenson-Leggett 38 posts 110 karma points
    Jan 14, 2010 @ 20:06
    Rob Stevenson-Leggett
    1

    Umbraco NiceUrls not returning with full domain

    Hi,

    I've had a requirement from a client to move a site into a subfolder, I've acheived this using ISAPI rewrite proxying to umbraco on its own domain and setting the hostname in umbraco to the subfolder url.

    This works almost perfectly (there's no postbacks going on so everything seems to work) except for some of my page urls are coming out without the domain, specifically those that are on level 2.

    My hierarchy is like so

    >Content
        > Root
              > Page with working url
                      > Page with just /page.aspx

     

    I've tried republishing etc, useDomainPrefixes is set.

    If I can get this one issue out the way, it will all be done!

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jan 14, 2010 @ 20:30
    Lee Kelleher
    1

    Hi Rob,

    It appears to be a bug with how NiceUrl works... there are a few other topics about it:

    http://our.umbraco.org/forum/using/ui-questions/5481-niceurl--3rd-level

    http://our.umbraco.org/forum/using/ui-questions/3502-Problem-with-useDomainPrefixes---no-unique-URL-starting-with-3rd-level?p=0 ;

    My advice would be to write an XSLT extension that wraps around NiceUrl and checks if a domain/hostname is present - if not, then prepend it.

    I'd call it something like "AwesomeUrl" ... you know, something Special like that?! ;-)

    Good luck, Lee.

  • Rob Stevenson-Leggett 38 posts 110 karma points
    Jan 14, 2010 @ 20:41
    Rob Stevenson-Leggett
    1

    K

    I'll give that a try.

Please Sign in or register to post replies

Write your reply to:

Draft