# Next.js: Redirecting after users visite invitation link

**URL:** <https://community.auth0.com/t/next-js-redirecting-after-users-visite-invitation-link/134123>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [May 14, 2024, 6:02pm UTC](https://community.auth0.com/t/next-js-redirecting-after-users-visite-invitation-link/134123 "2024-05-14T18:02:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry.adaji](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerry.adaji/32/49052_2.png) [@jerry.adaji](https://community.auth0.com/u/jerry.adaji)\
**Post date:** [May 14, 2024, 6:02pm UTC](https://community.auth0.com/t/next-js-redirecting-after-users-visite-invitation-link/134123/1 "2024-05-14T18:02:08Z")

</div>

Using the app router and have organizations enabled. When users click on the invitation link and authenticate, the land on: [http://www.example.com/login?invitation=xxxx&organization=org\_xxxx&organization\_name=xxx](http://www.example.com/login?invitation=xxxx&organization=org_xxxx&organization_name=xxx)

This page is treated as a 404.

How do I redirect users to a specific page after the accept the invitation?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [May 15, 2024, 8:03pm UTC](https://community.auth0.com/t/next-js-redirecting-after-users-visite-invitation-link/134123/3 "2024-05-15T20:03:06Z")

</div>

Hi @jerry.adaji,

Welcome to the Auth0 Community!

You could add the `redirect_uri` parameter in the request to send users to a specific page after they accept the invitation.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 29, 2024, 8:03pm UTC](https://community.auth0.com/t/next-js-redirecting-after-users-visite-invitation-link/134123/4 "2024-05-29T20:03:24Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
