Copied to clipboard

Flag this post as spam?

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


  • Greyhound 102 posts 124 karma points
    Jan 08, 2012 @ 18:09
    Greyhound
    0

    Very odd URL error

    Hi,

    I'm using 4.7 and have a weird problem with URLs.

    Anything with a space in (eg. "a nother") causes a 404 error:

    umbraco tried this to match it using this xpath query'/root/* [@urlName = "a-nother"] | /root/*/* [@urlName = "a-nother"]')

    Does anyone have any ideas as to why this could be happening.

    Thanks in advance.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 08, 2012 @ 21:28
    Jan Skovgaard
    0

    Hi Greyhound

    Do you know if there has been done some modification to the umbracoSettings.config?

    What does your <urlreplacing></urlreplacing> section look like?

    /Jan

  • Mads Krohn 211 posts 504 karma points c-trib
    Jan 09, 2012 @ 00:14
    Mads Krohn
    1

    I'm fairly sure that you can't use spaces in your url's per default.
    When you publish a document in Umbraco, it will give you an url like /a-nother and AFAIK Umbraco wont match /a nother

    /Mads

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 09, 2012 @ 21:43
    Jan Skovgaard
    0

    Yes, Mads is right about that.

    /Jan

  • Greyhound 102 posts 124 karma points
    Jan 10, 2012 @ 16:29
    Greyhound
    0

    Hi,

    Its not the URL that has the space, its the page name. For example, on my own Umbraco site:

    http://www.aurl.com/web-design.aspx : works fine and the page name property is "web design" which is getting translated into web-design.aspx just fine.

    @Jan - no modifications that I know of. The config looks as per normal to me:

     

     
                -
                
                
                
                
                
                
                
                plus
                star
                
                
                ae
                oe
                aa
                ae
                oe
                ue
                ss
                ae
                oe
            

     

     

  • Greyhound 102 posts 124 karma points
    Jan 10, 2012 @ 17:33
    Greyhound
    0

    Ok, turns out its not so odd, and that I'm being a bit slow this week!

    When I created my doctype, it didnt have a matching template - this is what is causing the error. I dont have a technical explanation but re-creating the docType with a matching template has worked.

    Thanks for the replies.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 10, 2012 @ 21:22
    Jan Skovgaard
    0

    Hi Greyhound

    Ah yes, missing templates can fool one :) Glad to see you got it solved.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft