handle legacy docs properly for lexical versions & send a redirect for permalink legacy url's to the ?qs= parm