Make anchors in Quick Docs relative to page URL

For #8718.