Skip to content

Auth URL Configuration redirect URLs UI/UX breaks when whitespace is present #47478

Description

@Techypi93

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

In Auth URL Configuration, the Redirect URLs input does not normalize pasted values consistently.

If a URL is pasted with trailing or accidental whitespace, the field UI and the saved value can get out of sync. It can look like a separate/new redirect URL entry is being created even though the final value is trimmed differently.

Deleting entries also seems to behave unexpectedly once the field gets into that state.

To Reproduce

  1. Open Studio.
  2. Go to Auth.
  3. Open URL Configuration.
  4. In Redirect URLs, paste a valid URL & the same url with a whitespace
  5. Add or remove entries and then save.

Result

The Redirect URLs field behaves inconsistently when whitespace is involved, and deleting entries can also behave incorrectly after that.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfrontendRelated to Supabase Dashboardpr-openedA PR has been opened to resolve the issue

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions