Filter url param

The unstructured nature of this code makes me really glad we're using angular elsewhere.