generate url for all pages

remove redirect? conditional