support url with params

To support urls like '/template.html?version=2'.
Test added.