What if I have the following route in a custom module and a path alias that is equal to the route path?

path: /contact
    _controller: Drupal\mymodule\Controller\MyController::contact
    _permission: 'access content'
  • 1
    If I recall correctly, the alias gets priority. or maybe it was the other way around. What have you found? – Jaypan Jun 21 at 8:21
  • 1
    I searched for it i didn't find any answer ! I think you are right aliases are called first – Hmad AmEdur Jun 21 at 8:32
  • 1
    I had this same issue yesterday - aliases get called first. – Janey Jun 21 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.