Full stops in folder names

Hi,

We would like to modify the characters that are escaped in folder names - specifically so that full stops are escaped as hyphens in the same way as spaces are.

So for example if a user created a folder with the name “section 2.3” we would like the URL name to be “section-2-3” rather than “section-2.3” as is happening put of the box.

Is this possible?

Thanks in advance,

David

Hi David,

please check:

1 Like

Hi Marijan,

Great, thanks for the tip!

David

Hi Again,

I think perhaps there is a bug here (or perhaps the docs are not up to date?).

On this page it says that periods should be removed:
https://javadoc.onehippo.org/11.0/hippo-repository/org/hippoecm/repository/api/doc-files/encoding.html

If I create a folder and type the name as:
this,is.aproblem/%name
… then the url name is:
thisis.aproblem-name

So the comma, slash and percent are all handled as specified in the javadoc but the period is not. Am I right that this is a bug? We are on version 12.5.1

Thanks!

David

Hi,

We have changed the behaviour as suggested.

Should I report the above as a bug? The class StringCodecFactory.UriEncoding does not handle periods in the ay specified in the documentation.

David

It would be nice!
I also had a look at both and found that the code contradicts what it say in the documentation in handling periods.

Thanks,

Woonsan