We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f530f76 commit cf905bcCopy full SHA for cf905bc
flow-server/src/main/java/com/vaadin/flow/server/communication/UidlRequestHandler.java
@@ -283,13 +283,17 @@ private void removeOffendingMprHashFragment(ObjectNode uidl) {
283
}
284
285
if (location != null) {
286
- idx = idx >= 0 ? idx : exec.size();
287
ArrayNode arr = JacksonUtils.createArrayNode();
288
arr.add("");
289
arr.add(String
290
.format(location.startsWith("http") ? PUSH_STATE_LOCATION
291
: PUSH_STATE_HASH, location));
292
- exec.set(idx, arr);
+ if (idx >= 0) {
+ exec.set(idx, arr);
293
+ } else {
294
+ exec.add(arr);
295
+ }
296
+
297
298
299
0 commit comments