I'm trying to add a taxonomy term from the node in question as a url parameter, but am struggling to figure out how to do it without just going through the site and modifying all of the links that point to it.
So currently the path looks like this
I'd like to modify if to look like this for a specific content type.
Should this be done in the routes file? Can it be done in hook_form_alter? Does anyone have any suggestions as to where I might look for an example of this? Can this be done with something like Pathauto?
The reason behind my need for this is to filter a view (that is shown via the form template). The node edit screen shares a matching programmatically generated taxonomy term (in this case "year"). We need to be able to contextually filter the view based on the value of the term from within the node.