Just as a subtle note on this method, you will not get the expected
names from this method if a user saves the page onto their computer. It
will instead populate with the path on the person's computer where the
HTML document lives. If you wanted to avoid this data, you may either
want to run s.abort on locally saved pages or consider an option for
setting pagename based on internal document context.