svghmi/widget_jump.ysl2
branchwxPython4
changeset 3688 c2992796a859
parent 3685 570a738239f4
--- a/svghmi/widget_jump.ysl2	Sun Nov 20 18:36:13 2022 +0100
+++ b/svghmi/widget_jump.ysl2	Wed Nov 23 14:18:25 2022 +0100
@@ -143,8 +143,8 @@
             otherwise value "$page_desc/arg[1]/@value";
         }
         const "target_page_path" choose {
-            when "arg" value "$hmi_pages_descs[arg[1]/@value = $target_page_name]/path[1]/@value";
-            otherwise value "$page_desc/path[1]/@value";
+            when "arg" value "$hmi_pages_descs[arg[1]/@value = $target_page_name]/path[not(@assign)]/@value";
+            otherwise value "$page_desc/path[not(@assign)]/@value";
         }
 
         if "not(func:same_class_paths($target_page_path, path[1]/@value))"