Invalid paths fix and url router