This is an automated email from the ASF dual-hosted git repository. greg-dove pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 9632fc190a818ff7dae7f72fcadd75b1b99f5a2a Author: greg-dove <[email protected]> AuthorDate: Mon Jun 22 19:22:32 2026 +0200 Fix router parameter parsing to clear stale params on URLs without queries --- .../src/main/royale/org/apache/royale/routing/RouteToParameters.as | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as index e5703f3842..b6fd57925c 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/RouteToParameters.as @@ -64,7 +64,10 @@ package org.apache.royale.routing var hash:String = event.value; var index:int = hash.indexOf("?"); if(index == -1)//no params + { + host.routeState.parameters = {}; return; + } hash = hash.slice(index + 1); index = hash.indexOf("#"); if(index != -1)
