Use url_for to construct the report tab status urls

Alternative approach to #236