Skip to content
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

Link behind button in Preset "Open in new Window" is not url decoded #740

Open
xantiva opened this issue Nov 17, 2024 · 0 comments
Open

Comments

@xantiva
Copy link

xantiva commented Nov 17, 2024

Describe the bug
The chart didn't open in a new windows if the name of the preset contains an ampersand (&). A windows is opened, but the chart is not displayed.

The url behind the button is:
/adapter/echarts/chart/index.html?preset=echarts.0.Wohnzimmer%20&%20K%C3%BCche

But instead of the unencoded ampersand & in the middle: %20&%20
it has to be an %26: %20%26%20

If I change the url manually, it works / the chart is loaded:
/adapter/echarts/chart/index.html?preset=echarts.0.Wohnzimmer%20%26%20K%C3%BCche

To Reproduce

  1. Open ioBroker and click on Charts (/#tab-echarts)
  2. Select a preset with an ampersand in the name like "Wohnzimmer & Küche".
  3. Press the button "Das Diagramm in einem eigenen Fenster öffnen" (in German)
  4. New browser tab opens, but nothing is loaded.

image

Expected behavior
The chart should be opened in the new browser tab.

Screenshots & Logfiles

Versions:

  • Adapter version: 1.9.2
  • JS-Controller version: 6.0.11
  • Node version: 20.18.0
  • Operating system: linux (buanet/iobroker:latest-v10)

Additional context

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

No branches or pull requests

1 participant