DG location key is more than just the dg number
Duplicate should be the location key not the path
Move addition of optional trailing slash to location key method

DG numbers do not have an optional trailing slash.
This involves removing it, if present, from the archive and suggested links.