This should take a reverse argument, rather than a hard-coded URL. Not sure how this would work for URLs with arguments, though.