Fixes https://github.com/vector-im/riot-web/issues/4529 because the match must include the remainder of the query.