[PR #1805] [CLOSED] feat: handle redirectTo query parameter in middleware #1865

Closed
opened 2026-02-26 20:31:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/1805
Author: @ephraimduncan
Created: 5/21/2025
Status: Closed

Base: mainHead: feat/handle-redirectto-param


📝 Commits (4)

  • d213b37 feat: handle redirectTo query parameter in middleware
  • e1fc49f chore: use cookie in production
  • 266f2ea Merge branch 'main' into feat/handle-redirectto-param
  • 5cb03a9 Merge branch 'main' into feat/handle-redirectto-param

📊 Changes

2 files changed (+33 additions, -4 deletions)

View changed files

📝 apps/remix/app/routes/_unauthenticated+/signin.tsx (+11 -2)
📝 apps/remix/server/middleware.ts (+22 -2)

📄 Description

Description

This pull request introduces functionality to handle a redirectTo query parameter within the application's middleware.

Changes Made

  • Added logic to read the redirectTo query parameter from the incoming request
  • If the redirectTo parameter is valid:
    • A redirectTo cookie is set
    • The user is redirected to the specified path

🔄 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/1805 **Author:** [@ephraimduncan](https://github.com/ephraimduncan) **Created:** 5/21/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/handle-redirectto-param` --- ### 📝 Commits (4) - [`d213b37`](https://github.com/documenso/documenso/commit/d213b378b819a76a07503b8fb4d85663f1147edb) feat: handle redirectTo query parameter in middleware - [`e1fc49f`](https://github.com/documenso/documenso/commit/e1fc49fa49a2efc2a3588897025604d0288459f1) chore: use cookie in production - [`266f2ea`](https://github.com/documenso/documenso/commit/266f2eab715313d1d85e7957f08a9e239be3da9b) Merge branch 'main' into feat/handle-redirectto-param - [`5cb03a9`](https://github.com/documenso/documenso/commit/5cb03a9448744f56d389fec68bc2cf2cfe538e4c) Merge branch 'main' into feat/handle-redirectto-param ### 📊 Changes **2 files changed** (+33 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `apps/remix/app/routes/_unauthenticated+/signin.tsx` (+11 -2) 📝 `apps/remix/server/middleware.ts` (+22 -2) </details> ### 📄 Description ## Description This pull request introduces functionality to handle a `redirectTo` query parameter within the application's middleware. ## Changes Made - Added logic to read the `redirectTo` query parameter from the incoming request - If the `redirectTo` parameter is valid: - A `redirectTo` cookie is set - The user is redirected to the specified path --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:31:25 +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#1865
No description provided.