0

I want to create a path alias pattern like [base_url][title] and overwrite the existing path alias for a specific content type. Also, all the nodes are redirected to the new custom alias.

e.g., existing alias pattern is A/B/C and the generated url is www.test.com/de/A/B/C - Need to convert into www.test.com/C where de is language code here.

What approach should I take?

6
  • Use the Redirect module
    – Kevin
    Dec 18, 2017 at 12:59
  • I do not want to give the access to redirect module to the End-user, need to do programmatically or any other configuration.
    – latikas
    Dec 18, 2017 at 13:21
  • So don’t give them access to it? It’s permission based.
    – Kevin
    Dec 18, 2017 at 13:51
  • 1
    @latikas, Pathauto can redirect old aliases when generating new ones. But it can't remove a language prefix, because this is handled separately by language detection.
    – 4uk4
    Dec 18, 2017 at 18:59
  • Thanks for your reply, instead of Pathauto module any alternative solution? Using pathauto module, we need to add redirect urls manually.
    – latikas
    Dec 19, 2017 at 5:37

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.