When I create a node with "This is sample title" as title, the Pathauto module will create "this-is-sample-title" as URL alias and some "node/123" as real node URL. But we can browse the same content with a different URL such as
SERVER/this-is-sample-title
SERVER/this-is-sample-title/some-garbage-here
In node head source code canonical url is set to "/this-is-sample-title" and shortlink to "node/123". How do I make Drupal strict on the URL alias and redirect to 404 if URL garbage found (even if first URL segment is correct)?