I have a path /application, which is rendered by a custom module (through a combination of theme hook/controller/routing/twig). It’s basically a mini-application.
I also have a Drupal node /data, which is a Drupal node with content loaded by Drupal.
However, I need to load the contents of /application at /data. I tried setting the routing of my custom module to use /data instead of /application, but Drupal still loads the Drupal node content at /data rather than the custom module content. The catch is, this particular application uses fields from that node, so I don’t want to delete the node. I just want to change what gets rendered when you view the node, but leave it active and editable.
What’s the best way to accomplish this?
Note: I tagged this question Drupal 8 but really it’s for Drupal 9.