change to pretty_url_tpl_hook()