Issue #1955378 by skek, Darren Oh, claudiu.cristea, David_Rothstein: Return same derivative token with path or URI.

PR for https://github.com/backdrop/backdrop-issues/issues/222