fix [+to+] and redirect to first page when inexistent page queried