Pre-open section linked to in anchor

Adds `GOVUK.getCurrentLocation()` which returns `window.location` so that we can stub the return value in tests.