diff --git a/assets/src/modules/Permalink.js b/assets/src/modules/Permalink.js index ee6a2ee9d7..c671c46c0b 100644 --- a/assets/src/modules/Permalink.js +++ b/assets/src/modules/Permalink.js @@ -294,7 +294,7 @@ export default class Permalink { for (const item of mainLizmap.state.rootMapGroup.findMapLayersAndGroups()) { if (item.checked){ itemsVisibility.push(encodeURIComponent(item.name)); - itemsStyle.push(item.wmsSelectedStyleName); + itemsStyle.push(item.wmsSelectedStyleName ? encodeURIComponent(item.wmsSelectedStyleName) : item.wmsSelectedStyleName); itemsOpacity.push(item.opacity); } }