Developer forum

Forum » CMS - Standard features » Direct paths with "-"

Direct paths with "-"

René Poulsen
Reply

Hi,

Isn't it possible to create direct paths with "-" in the path? It does not work on a solution running 8.7.2.8. But should it work?


Replies

 
René Poulsen
Reply

Bump

 
Nicolai Høeg Pedersen
Reply

Yes you can. It works locally on my 8.8.

Be aware that if you have a page with the URL page-name you cannot make a direct path that is also called page-name.

We need a link to dig into it further if you do not have it working.

 
René Poulsen
Reply

Hi Nicolai,

I just tried with "/test-test" and this worked. When the customer tried, they first had a page with URL "/google-maps". Then they changed the name of that page and tried creating a direct path with "/google-maps" into that page - and that didn't work. Ever experienced something like this?

 
Nicolai Høeg Pedersen
Reply

No, have not seen that.

They should not start the direct path with "/" - just "google-maps"

 
René Poulsen
Reply

Okay, what's the difference? It works for me using both with and without the "/".

 
Nicolai Høeg Pedersen
Reply

Ah, good question :-).

It is not needed anyways, the code seems to check for it...

 
René Poulsen
Reply
This post has been marked as an answer

Great :-)

I think I've found the problem with the path that wasn't working. They've made a copy of their website so a page with "/google-maps" url actually exists. So I guess that answers my own question :-)

Votes for this answer: 1

 

You must be logged in to post in the forum