Adding support for header anchors and base url