Skip to content

Commit

Permalink
Merge pull request #1140 from geoadmin/bug-PB-1211-more-link-issue
Browse files Browse the repository at this point in the history
PB-1211 : do not add ; if layer with feature selection is alone
  • Loading branch information
pakb authored Nov 26, 2024
2 parents 9a9c1f6 + 4e091ae commit f501424
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/legacyLayerParamUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,10 @@ export function handleLegacyFeaturePreSelectionParam(params, store, newQuery) {
// if there are no layers parameters at all, we need to create one
newQuery.layers = ''
}
newQuery.layers += `;${layerId}@features=${featuresIds.split(',').join(':')}`
if (newQuery.layers.length > 0) {
newQuery.layers += ';'
}
newQuery.layers += `${layerId}@features=${featuresIds.split(',').join(':')}`
}
})
}
Expand Down

0 comments on commit f501424

Please sign in to comment.