OAuth redirect with query parameters fails to match route and results in blank page #395

Closed
opened 2026-04-05 16:16:22 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @rizalord on 11/21/2025

Description

After completing the Google Drive OAuth flow, the app is redirected to /storages/google-oauth?oauthDto=... (with a long query parameter). However, the page fails to load and displays a blank screen.

In the browser console, the following error appears:
No routes matched location "/storages/google-oauth?..."

I have already followed all steps from the official documentation here:
https://postgresus.com/storages/google-drive

Expected Behavior

The redirect should match the /storages/google-oauth route even when query parameters are present, and the page should render normally.

Steps to Reproduce

  1. Follow the setup instructions from the documentation.
  2. Trigger Google Drive OAuth authentication.
  3. After authorization, wait for the redirect to /storages/google-oauth?oauthDto=....
  4. Observe that the page becomes blank.
  5. Check browser console and see:
    No routes matched location "/storages/google-oauth?..."
Image
*Originally created by @rizalord on 11/21/2025* **Description** After completing the Google Drive OAuth flow, the app is redirected to `/storages/google-oauth?oauthDto=...` (with a long query parameter). However, the page fails to load and displays a blank screen. In the browser console, the following error appears: `No routes matched location "/storages/google-oauth?..."` I have already followed all steps from the official documentation here: [https://postgresus.com/storages/google-drive](https://postgresus.com/storages/google-drive) **Expected Behavior** The redirect should match the /storages/google-oauth route even when query parameters are present, and the page should render normally. **Steps to Reproduce** 1. Follow the setup instructions from the documentation. 2. Trigger Google Drive OAuth authentication. 3. After authorization, wait for the redirect to /storages/google-oauth?oauthDto=.... 4. Observe that the page becomes blank. 5. Check browser console and see: No routes matched location "/storages/google-oauth?..." <img width="1900" height="990" alt="Image" src="https://github.com/user-attachments/assets/e075700e-9bbb-4037-ad95-67410e016ab9" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#395