my.home-assistant.io icon indicating copy to clipboard operation
my.home-assistant.io copied to clipboard

Blueprints imported via generated My HA widget links broken when original link contains spaces.

Open changeling opened this issue 6 months ago • 14 comments

Checklist

  • [X] I have updated to the latest available Home Assistant version.
  • [X] I have cleared the cache of my browser.
  • [X] I have tried a different browser to see if it is related to my browser.
  • [X] I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

I'm not sure if this belongs to Frontend, or another repo, but this seems the most likely. If this would be better posted elsewhere, please let me know.

As of 2024.8: Beautiful badges!, Blueprints imported via generated My HA widget links no longer work for original links which contains spaces.

For example:

Doesn't import, yields An unknown error occurred: View-Assist Travel Time Blueprint with spaces

Does import successfully: [View-Assist Travel Time Blueprint without spaces]

Describe the behavior you expected

A clean import flow, as demonstrated in the second link.

Steps to reproduce the issue

  1. Attempt to import a Blueprint via an HA Link Generator widget that contains spaces. That is, via a redirected URL containing the link to the file to be imported.

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Safari Version 17.5 (19618.2.12.11.6)

Which operating system are you using to run this browser?

MacOS Sonoma 14.5 (23F79)

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

changeling avatar Aug 23 '24 22:08 changeling