% in the URL

Permalink
How can I get % in the URL?

I have searched and tried a lot but can't find an answer to my problem.

I need it to translate words from norwegian to google readable text.

 
jordanlev replied on at Permalink Reply
jordanlev
I'm assuming your question is: you want url codes in your page slugs (e.g. /this%20page), but concrete5 is stripping them out when you save the page?

What happens if you just paste the Norwegian characters (unencoded) into the slug field -- concrete5 might change them to "percent codes" for you (haven't tested this though so I'm not sure if it works).

Otherwise it will probably require some hacking, either of the system code or going into the database and manually updating fields.
SVijay replied on at Permalink Reply
SVijay
Hi morten7,

I am not sure about your problem, but the given link may help you, so try this
http://www.concrete5.org/documentation/developers/helpers/urls...
morten7 replied on at Permalink Reply
'Helper : URLs' is not the right thing, but thanks.

I have found that I can remove the line
alias = alias.replace(/[^0-9A-Za-z-]/gi
in concrete/elements/collection_add.php
and get the % in the page slug field, but it is removed when I hit Add Page and look at the real URL.
Tao replied on at Permalink Reply
Tao