Copied to clipboard

Flag this post as spam?

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


  • Dario 2 posts 82 karma points
    1 week ago
    Dario
    0

    How to add a + symbol in the url (Umbraco version 7.2.1)

    Hi all,

    I have no experience with Umbraco what so ever so I'm compelled to seek help here.

    My problem is very simpel, I think: I have an URL in which I have to put in a plus symbol.

    E.g. I want my URL to be http://nameofwebsite.dk/da/energy+/

    However, it automatically changes to http://nameofwebsite.dk/da/energyplus/ when I save and publish the page.

    As you can see in my attached screenshot, I don't work in codes. I neither know JavaScript or c#.

    I really hope it is possible to solve this problem.

    I look forward to any help I might get.

    Thank you very much in advance.

    Best,

    Dario

    enter image description here

  • Dan Diplo 1351 posts 5047 karma points MVP 2x c-trib
    1 week ago
    Dan Diplo
    1

    Hi. I'm not 100% certain of this, but I think you can configure this in one of Umbraco's configuration files. It's called umbracoSettings.config and is in the /config/ folder.

    Look for a section called RequestHandler - see https://our.umbraco.com/documentation/Reference/Config/umbracoSettings/#requesthandler

    Within there you can add the following section (if it's not there) or modify it (if it's already there), which tells Umbraco how to replace chars:

    <urlReplacing removeDoubleDashes="false" toAscii="false">
            <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="&lt;"></char>
            <char org="&gt;"></char>
        </urlReplacing>
    

    You can see the entry you want to change is:

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

    Do note, however, that a "+" symbol in a URL is often shorthand for a space, so may end up getting encoded strangely and cause issues (which is why Umbraco doesn't allow them in the first place).

  • Dario 2 posts 82 karma points
    1 week ago
    Dario
    0

    HI Dan,

    I can't even find the /config folder. Is it nessesary to install some kind of html builder? I saw some videos on Umbraco inwhich they used Webmatrix.

    But thank you kindly for the reply - I appreciate it.

  • Dan Diplo 1351 posts 5047 karma points MVP 2x c-trib
    1 week ago
    Dan Diplo
    100

    Every Umbraco installation will have a /config/ folder with lots of .config files in there. They are required for Umbraco to work. However, you can only access them on the server where Umbraco is installed - you can't view or edit them directly through the CMS. So you'll need access to where the files for Umbraco are actually installed (usually a server where the website lives).

Please Sign in or register to post replies

Write your reply to:

Draft