Fixed the uri's of the detail links on the overview page.

The uri's were always appended with ?run=... which clashes when a user
is logged in because of the __csrfToken being added.
This commit checks for the presense of an ? in the uri and uses a & or ?
depending on the presence of a ?