Skip to content

Fixed a bug with spaces in WorkflowIds when creating links in the UI.#2874

Open
Evanthx wants to merge 1 commit into
masterfrom
linkspace
Open

Fixed a bug with spaces in WorkflowIds when creating links in the UI.#2874
Evanthx wants to merge 1 commit into
masterfrom
linkspace

Conversation

@Evanthx
Copy link
Copy Markdown

@Evanthx Evanthx commented May 11, 2026

I used a workflow id that had a space in it, and realized that the links to it in the UI workflow step were broken. They should have linked to "workflow%20id" for example, but instead linked to "workflow%2Bid". This will only show up if you have a space in the workflow ID, so that is why it was missed.

The root issue turns out to be that the URLEncoder is meant for forms, where this is evidently the standard.

The solution used here is to encode the string, then replace any "+" values with "%20". If the string has a plus, it will be converted to "%2B" by the call, so will not be affected by the replace (that is being double checked by the unit test.)

@Evanthx Evanthx requested a review from a team as a code owner May 11, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants