-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blueprints imported via generated My HA widget links broken when original link contains spaces. #482
Comments
Moved to home-assistant/core#124515 |
Are you using https://my.home-assistant.io/create-link/ to create the links? If so, what is your input? |
@steverep Yes. Input looks like this:
Note that these were all working previously but something has changed as all of those previously working links are nonfunctional now presenting 'An error occurred' when attempting to import. |
@steverep @dinki On this point, I just noticed that It will accept this with the Regardless, the resulting redirect URL will still yield an |
So there's definitely at least one bug in that generator I've noticed. The reason it reports the |
The generator also simply does not create the my HA link correctly. The search parameter should look like:
In other words, it should just percent encode the |
I've transferred this to the correct repo and assigned myself. Fix is easy enough and I'll get to it shortly. In the meantime, just replace any "+" with "%2520". |
Thank you for taking this on, Steve. It's much appreciated. And thanks for moving this, and identifying the repo it belongs to. My apologies for my lack of familiarity with the codebase and where which issue belongs. And now I know. |
@steverep Yes thank you for workin gon this. I attempted to do as you suggested with the "+" with "%2520" and came up with this:
When I click the link I get a popup saying "my.home-assistant.io says Invalid parameters given" . Sorry for not fully understanding but should this replacement work as-is right now or is it dependent on you putting in your fix? |
Just checking on the status of this issue. |
Hi @steverep . Sorry to be a pain but this breaking change is posing some issues with my project as it is dependent on these blueprints and all of my urls have spaces in them. Should I work towards restructuring my GH to not have spaces to get around this issue or do you think a fix may be available relatively soon? Thanks again. |
Checking the status of this. |
There's no need to keep posting in this thread for statusses. It's a community driven project, so contributions are mostly done in free time. |
https://my.home-assistant.io/create-link/ |
Checklist
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
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
The text was updated successfully, but these errors were encountered: