docs(directives): ensure that the back-to-top directive resets location

Closes #6512
Closes #6499