Fixed bug where query string would not be forwarded to the index file