[PR #137] [MERGED] Redirect to /dashboard if auth user tries to access /login or /signup #745

Closed
opened 2026-02-26 18:48:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/137
Author: @zahid47
Created: 4/19/2023
Status: Merged
Merged: 4/25/2023
Merged by: @Mythie

Base: mainHead: issue-131-redirect-to-dashboard-if-logged-in


📝 Commits (1)

  • 849885b fix: redirect to /dashboard if auth user tries to access /login or /signup

📊 Changes

2 files changed (+22 additions, -0 deletions)

View changed files

📝 apps/web/pages/login.tsx (+11 -0)
📝 apps/web/pages/signup.tsx (+11 -0)

📄 Description

fixes #131

I think we should be using next middleware to do all the redirecting. What do you think? Do you want me to try to do that instead?


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/137 **Author:** [@zahid47](https://github.com/zahid47) **Created:** 4/19/2023 **Status:** ✅ Merged **Merged:** 4/25/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `issue-131-redirect-to-dashboard-if-logged-in` --- ### 📝 Commits (1) - [`849885b`](https://github.com/documenso/documenso/commit/849885b5b361880f25d877b148b8ac640c45779e) fix: redirect to /dashboard if auth user tries to access /login or /signup ### 📊 Changes **2 files changed** (+22 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/pages/login.tsx` (+11 -0) 📝 `apps/web/pages/signup.tsx` (+11 -0) </details> ### 📄 Description fixes #131 I think we should be using [next middleware](https://nextjs.org/docs/advanced-features/middleware) to do all the redirecting. What do you think? Do you want me to try to do that instead? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 18:48:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#745
No description provided.