Copied to clipboard

Flag this post as spam?

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


  • AvihayBit 149 posts 303 karma points
    Oct 29, 2013 @ 12:58
    AvihayBit
    0

    How do I use the NodeId or other shorter URL??

    Hi there, Im trying to make a comments form in a website, and running into a annoying error:

    "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."

    I think its because my node Name are in hebrew letters and when the browser translate it to URL it gets really long- e.g:

    http://mydomain.co.il/%D7%9E%D7%95%D7%9E%D7%97%D7%99%D7%9D/%D7%94%D7%9E%D7%95%D7%9E%D7%97%D7%99%D7%9D-%D7%A9%D7%9C%D7%A0%D7%95/%D7%A9%D7%99%D7%A8%D7%99-%D7%92%D7%95%D7%A8%D7%93%D7%95%D7%9F/%D7%94%D7%97%D7%95%D7%A4%D7%99%D7%9D-%D7%A9%D7%9C-%D7%9E%D7%99%D7%A7%D7%95%D7%A0%D7%95%D7%A1/?action=comment&success=true#success

     I thought that a good solution will be to use different URL to these pages- maybe the nodeID, but- Is these even possible to make the umbraco use this URL automatically when posting the comment/ permanently for these nodes?

    any other solution will be a great help as well.

    Thanks, Avihay 

  • Rich Green 2246 posts 4008 karma points
    Oct 29, 2013 @ 13:10
    Rich Green
    0

    Hey,

    That doesn't look right, but if you check your /config/umbraco.settings file you can view (and change) what gets swapped out:

     

      <urlReplacingremoveDoubleDashes="true">

          <char org=" ">-</char>

          <char org="&quot;"></char>

          <char org="'"></char>

          <char org="%"></char>

          <char org="."></char>

          <char org=";"></char>

          <char org="/"></char>

          <char org="\"></char>

          <char org=":"></char>

          <char org="#"></char>

          <char org="+">plus</char>

          <char org="*">star</char>

          <char org="&amp;"></char>

          <char org="?"></char>

          <char org="æ">ae</char>

          <char org="ø">oe</char>

          <char org="å">aa</char>

          <char org="ä">ae</char>

          <char org="ö">oe</char>

          <char org="ü">ue</char>

          <char org="ß">ss</char>

          <char org="Ä">ae</char>

          <char org="Ö">oe</char>

          <char org="'"></char>

          <char org=","></char>

          <char org="!"></char>

          <char org="|">-</char>

          <char org="&lt;"></char>

          <char org="&gt;"></char>

     

        </urlReplacing>

  • AvihayBit 149 posts 303 karma points
    Oct 29, 2013 @ 13:24
    AvihayBit
    0

    Thanks Rich, I dont see anything that help me out there.

    Now I noticed that I cant see these pages even without the comments. Their hebrew names makinng their names way too long:is

    mydomain.co.il/מומחים/המומחים-שלנו/שירי-גורדון/החופים של מיקונוס/

    /* Edit- I wrote the hebrew URL up here ^ but it seems that the encoding dissappearing the letters from the post...

    turning into:

    http://mydomain.co.il/%D7%9E%D7%95%D7%9E%D7%97%D7%99%D7%9D/%D7%94%D7%9E%D7%95%D7%9E%D7%97%D7%99%D7%9D-%D7%A9%D7%9C%D7%A0%D7%95/%D7%A9%D7%99%D7%A8%D7%99-%D7%92%D7%95%D7%A8%D7%93%D7%95%D7%9F/%D7%94%D7%97%D7%95%D7%A4%D7%99%D7%9D-%D7%A9%D7%9C-%D7%9E%D7%99%D7%A7%D7%95%D7%A0%D7%95%D7%A1/

    BUT- if I use the nodeId mydomain.co.il/1179 it works great!

    someone have a clue for a possible way to the solution here? 

  • Anand Kumar 4 posts 24 karma points
    Jun 09, 2014 @ 14:06
    Anand Kumar
    0

    Hi,

    I want to replace space with my own string or symbol  _  , but the chang is not reflected in the url's. The '-' symbol is still there instead of my own. For othere symbols it is working fine.

    Please guide.

    <urlReplacingremoveDoubleDashes="true">

          <char org=" ">CustomWord</char>

       </urlReplacing>

    Thanks in advance..

    Anand

  • Rich Green 2246 posts 4008 karma points
    Jun 09, 2014 @ 14:07
    Rich Green
    0

    Restart your web application (you can do this by adding a blank line in your web config file)

    Rich

  • Anand Kumar 4 posts 24 karma points
    Jun 09, 2014 @ 14:35
    Anand Kumar
    0

    Hi, 

    Thaks for the reply.

    I tried that on umbraco 6 as well. It ie working fine there but same is not working on umbraco 7. Am i doing any mistake?

    Please guide.

    Thanks again,

    Anand

     

Please Sign in or register to post replies

Write your reply to:

Draft