These are the old docs, but you basically need two routes (you will have to slightly adapt this example to your page names and to the new syntax but the principle is the same)
Thanks again! I used that code bit before, got it from the forum, but it doesn’t work. I did replaced the “blog” instances… What could it be? I still don’t understand what this is doing… What is UID? Shouldn’t i put “projects/(:any)” in line 3?
Oh, i see. Sorry, i don’t understand the new syntax, can’t find documentation about it too. Is there any resource about it?
Still, it doesn’t work… Maybe it’s broken elsewhere? Any ideas on how to catch the problem? I’ve been testing with some random anchors scattered all over the DOM and it doesn’t ommit the “projects” part…
I tested the code in a Starterkit and it works. Have you tested this?
What you probably mean is that the links don’t change; you can take care of that with a Page model. In your Page model, overwrite the default url() method, so that it omits the parent folder.
Thanks for your help, i think i have to start hover. I was using the v2! The documentation changed recently and i thought my fresh download was version 3!
Do you know how to, or where i can find info about, convert to the new syntax? For example, in the following code, i don’t know how to convert the array:
Sorry for digging this up but I’m just testing this bit of code and ran into an issue. The route works fine at first glance but it seems to break the preview for Drafts. Previewing a Draft returns the error page instead of rendering the preview. Any ideas?