contenta_vue_nuxt icon indicating copy to clipboard operation
contenta_vue_nuxt copied to clipboard

Create nice seo-friendly urls instead of `/recipes/84cfaa18-faca-471f-bfa5-fbb8c199d039`

Open yann-yinn opened this issue 5 years ago • 5 comments

yann-yinn avatar Oct 20 '18 12:10 yann-yinn

Am curious, do you have an approach for doing this? I'm evaluating Vue + Drupal and noticed this immediately, that dynamic pages based in the id show an 'unfriendly' id instead a friendly url.

tanc avatar Nov 13 '18 16:11 tanc

Using https://www.drupal.org/project/decoupled_router

But I do not have any example.

facine avatar Nov 13 '18 16:11 facine

Hello, yes there is no "slug" field available so we have to use decoupled_router. This is more powerful but seems more complicated to implement, i'm taking a look at this this week, and will update this issue.

yann-yinn avatar Nov 13 '18 16:11 yann-yinn

Any updates?

ludo1960 avatar Apr 29 '19 03:04 ludo1960

I do not maintain this project anymore because i'm not using Drupal anymore. I looked quickly at decoupled router, I guess it is the way to go because it take care of redirecting etc ... but it is too complicated for most of my needs ( https://www.lullabot.com/articles/decoupled-hard-problems-routing ) so I gave up. On simple projects, i simply use a "slug" field and use it instead of the "uuid" to build url and load the resources.

yann-yinn avatar Apr 29 '19 08:04 yann-yinn