definitely need a comment here to explain why you are rewriting the URL (link to JIRA maybe).