# Choose a destination after signup

Source: https://zotonic.com/cookbook/1590/choose-a-destination-after-signup

URI: https://zotonic.com/id/1590

Language: en

Return a fixed local destination from the current signup notification.

In the active site or module, include `zotonic.hrl` and export `observe_signup_confirm_redirect/2`:

```erlang
observe_signup_confirm_redirect(#signup_confirm_redirect{}, Context) ->
    m_rsc:p(signup_welcome, page_url, Context).
```

Create a resource named `signup_welcome`, publish it and verify the new user can view it. Compile, refresh observer registration, then complete a practice signup and its verification flow. Expect the welcome page.

This notification is for a signup with a confirmed identity. For normal login, the separate `#logon_ready_page{request_page = RequestedPage}` notification participates in destination selection. Preserve a legitimate existing destination when the flow requires it and validate any supplied URL using the authentication module's policy. Do not return an arbitrary posted URL or obsolete raw tuple.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1590?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1590?language=en>)
