tweak redirect for doc