I think this needs to be cleaned up a bit (maybe by setting something in the view function?). As written it's a bit mad (three copies of the same `<a>` tag just to add some parameters) and error prone.