Skip to content

Do not throw when a StandardButton receives an invalid URL#15961

Open
jonathonherbert wants to merge 2 commits into
mainfrom
jsh/button-do-not-fail-on-invalid-url
Open

Do not throw when a StandardButton receives an invalid URL#15961
jonathonherbert wants to merge 2 commits into
mainfrom
jsh/button-do-not-fail-on-invalid-url

Conversation

@jonathonherbert
Copy link
Copy Markdown
Contributor

What does this change?

Do not throw when a StandardButton contains an invalid URL — or none at all.

Why?

Buttons of this sort start out life without a URL, so this is a common state and we shouldn't blow up when we see it 😅

Screenshots

Before After
Screenshot 2026-05-22 at 15 12 49 Screenshot 2026-05-22 at 15 13 37

Add CODE domains, which mistakenly include protocols 😅
@jonathonherbert jonathonherbert self-assigned this May 22, 2026
@jonathonherbert jonathonherbert added the maintenance Departmental tracking: maintenance work, not a fix or a feature label May 22, 2026
@jonathonherbert jonathonherbert added this to the Health milestone May 22, 2026
@github-actions
Copy link
Copy Markdown

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

Copy link
Copy Markdown
Contributor

@andrewHEguardian andrewHEguardian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants