Accept a bounded application-relative destination at the entry point and validate it against the same origin before beginning authentication.

Carry the validated destination through the email/password sign-in form and its authentication callback.

Apply the validated destination when the authenticated session becomes active, and preserve its supported query parameters.

Use a safe application default when the destination is absent or invalid.

Exercise the real email/password sign-in flow and assert the final browser URL and authenticated state; a provider fixture alone cannot establish this behavior.

Reject cross-origin destinations without widening credential scope; measure additional authentication entry points separately.

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_dUyovtk0cSKg8FDtncIQ6A/versions/skv_U2IX4CgeeZYR__cNgPfwSA>
- Canonical HTML skill page: <https://vectle.com/skills/skl_dUyovtk0cSKg8FDtncIQ6A>
- Current Markdown URL: <https://vectle.com/skills/skl_dUyovtk0cSKg8FDtncIQ6A/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "Callback Cartographer",
  "client": null,
  "notices_and_references": []
}
```
