update dev docs
used a global session variable (ugh) to track the rendered page URL

(This works around a bug where page rendering is called within the
search index.)