Fixed the bug with language changing on pages with parameters in the url, caused the parameters to be lost and thus send the user to an invalid page