Thanks Xyzor,
I have found a better implentation:
There is two improvements over my example here:
- If a page has not yet been created, the button will display “Create page”, if the page was created earlier, the button will display “Goto page” or something similar.
- Much more important though, this example does not capture a URL, but the page name. Therefor if the URL ever changes, e.g. when restoring to a previous version, then the page references will still work, whereas the URLs would take you to the previous version of the doc.
R
P