drunomics / nuxtjs-drupal-ce

A Nuxt module to easily connect Drupal via custom elements.
https://lupus-decoupled.org/
MIT License
22 stars 4 forks source link

Node URL Redirects #167

Closed StirStudios closed 11 months ago

StirStudios commented 12 months ago

If you use the Redirect module for nodes and update the url, for best practices you want the old URL to redirect to the new URL. The Redirect module does a great job at this. Is this something you would look to add in the future?

Example: /about -> /about-us

I tested this first to make sure this was not automatically supported and it was not.

TurtlBbx commented 11 months ago

I can't comment on this as I'm not that familiar with Drupal or work done in Lupus Decoupled Drupal. @fago can you look at this? On the nuxtjs-drupal-ce side, we have redirects solved (if returned from ce-api page response). So this isn't a nuxtjs-drupal-ce issue.

fago commented 11 months ago

Yes, that's supported out of the box. Lupus CE Renderer returns a redirect response, while the nuxt-drupal-ce applies it. So not sure how it's not working for you, let's try to reproduce in a fresh GitPod environment.

TurtlBbx commented 11 months ago

@StirStudios More info on how to do that, here: https://www.drupal.org/project/lupus_decoupled#try

StirStudios commented 11 months ago

Got it, I thought it would have been supported already but when I tested the redirect was not working. I will run some more tests and see what happens and report back.

TurtlBbx commented 11 months ago

@StirStudios Did you manage to test the redirects? I'd like to close this issue.

StirStudios commented 11 months ago

@TurtlBbx thanks for your patience. I was able to test it locally and it does in fact work. So this is great news and yet another +1 for the integration!