# % and custom widgets

**URL:** <https://community.openhab.org/t/and-custom-widgets/18980>\
**Category:** HABPanel\
**Created:** [December 28, 2016, 8:41pm UTC](https://community.openhab.org/t/and-custom-widgets/18980 "2016-12-28T20:41:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Bagdanoff](https://community.openhab.org/user_avatar/community.openhab.org/mike_bagdanoff/32/39368_2.png) [@Mike\_Bagdanoff](https://community.openhab.org/u/Mike_Bagdanoff)\
**Post date:** [December 28, 2016, 8:41pm UTC](https://community.openhab.org/t/and-custom-widgets/18980/1 "2016-12-28T20:41:36Z")

</div>

Has anyone noticed that if there is a % sign in the custom widget HTML, that the “Save” button won’t work and the configuration won’t save?

I’m using Chrome and the latest snapshot.

---

<div class="post-metadata">

**Author:** ![ysc](https://community.openhab.org/letter_avatar_proxy/v4/letter/y/e480ec/32.png) [@ysc](https://community.openhab.org/u/ysc)\
**Post date:** [December 30, 2016, 9:59pm UTC](https://community.openhab.org/t/and-custom-widgets/18980/2 "2016-12-30T21:59:33Z")

</div>

Tried it and didn’t encounter any errors, can you check out the Chrome developer tools (F12) and report anything unexpected (the HTTPS service worker thing isn’t an issue) in the Console & Network tabs?

---

<div class="post-metadata">

**Author:** ![Mike\_Bagdanoff](https://community.openhab.org/user_avatar/community.openhab.org/mike_bagdanoff/32/39368_2.png) [@Mike\_Bagdanoff](https://community.openhab.org/u/Mike_Bagdanoff)\
**Post date:** [December 31, 2016, 6:36pm UTC](https://community.openhab.org/t/and-custom-widgets/18980/3 "2016-12-31T18:36:45Z")

</div>

Here is what the console log shows:

```auto
Error while saving to openHAB 2 configuration
openhab.service.js:294 openHAB 2 service configuration loaded
vendor.js:119 URIError: URI malformed
    at decodeURI (<anonymous>)
    at XMLHttpRequest.send (xhrExtension.js:2)
    at vendor.js:105
    at n (vendor.js:100)
    at vendor.js:98
    at vendor.js:132
    at m.$eval (vendor.js:147)
    at m.$digest (vendor.js:144)
    at m.$apply (vendor.js:147)
    at l (vendor.js:99)
(anonymous) @ vendor.js:119
(anonymous) @ vendor.js:92
(anonymous) @ vendor.js:133
$eval @ vendor.js:147
$digest @ vendor.js:144
$apply @ vendor.js:147
l @ vendor.js:99
K @ vendor.js:103
N.onload @ vendor.js:104
openhab.service.js:332 Error while saving openHAB 2 service configuration: {}
(anonymous) @ openhab.service.js:332
(anonymous) @ vendor.js:132
$eval @ vendor.js:147
$digest @ vendor.js:144
$apply @ vendor.js:147
l @ vendor.js:99
K @ vendor.js:103
N.onload @ vendor.js:104
persistence.service.js:110 Error while saving to openHAB 2 configuration

```

If I remove the % from the HTML it saves fine and doesn’t show that error.

Thanks for looking into it

---

<div class="post-metadata">

**Author:** ![ysc](https://community.openhab.org/letter_avatar_proxy/v4/letter/y/e480ec/32.png) [@ysc](https://community.openhab.org/u/ysc)\
**Post date:** [January 1, 2017, 5:52pm UTC](https://community.openhab.org/t/and-custom-widgets/18980/4 "2017-01-01T17:52:09Z")

</div>

> [@Mike\_Bagdanoff](#):
>
> vendor.js:119 URIError: URI malformed

Well this is not normal and possibly related - but I don’t see why a % in the HTML could end up screwing the URL… Very weird. Also I still can’t reproduce it, works fine on my end with beta 5. 😕

---

<div class="post-metadata">

**Author:** ![ysc](https://community.openhab.org/letter_avatar_proxy/v4/letter/y/e480ec/32.png) [@ysc](https://community.openhab.org/u/ysc)\
**Post date:** [January 1, 2017, 6:41pm UTC](https://community.openhab.org/t/and-custom-widgets/18980/5 "2017-01-01T18:41:52Z")

</div>

@Mike_Bagdanoff: you might want to look up this thread

[https://community.openhab.org/t/known-issues-w-habpanel-not-saving-custom-widgets](https://community.openhab.org/t/known-issues-w-habpanel-not-saving-custom-widgets)

I’m guessing you have the LastPass extension 🙂  
It hijacks URLs and is causing problems currently.

---

<div class="post-metadata">

**Author:** ![Mike\_Bagdanoff](https://community.openhab.org/user_avatar/community.openhab.org/mike_bagdanoff/32/39368_2.png) [@Mike\_Bagdanoff](https://community.openhab.org/u/Mike_Bagdanoff)\
**Post date:** [January 1, 2017, 6:57pm UTC](https://community.openhab.org/t/and-custom-widgets/18980/6 "2017-01-01T18:57:04Z")

</div>

yes I do. Thanks, the workaround worked too.
