just a todo
append the url only if redirect is specified