ironmansoftware / issues

Public Issue tracker for Ironman Software products.
https://ironmansoftware.com
32 stars 2 forks source link

$query not updating when changing pages via naviation #3355

Closed TurnItOff-OnAgain closed 2 weeks ago

TurnItOff-OnAgain commented 1 month ago

Version

4.2.21

Severity

Low

Environment

msi

Steps to Reproduce

https://forums.ironmansoftware.com/t/query-not-updating-when-switching-pages-from-navigation/10808

$Navigation = @(
    New-UDListItem -Label "All" -href '/home'
    New-UDListItem -Label "01" -Href '/home?site=01'
    New-UDListItem -Label "02" -Href '/home?site=02'
    New-UDListItem -Label "03" -Href '/home?site=03'
)
New-UDApp -Title "component test dash" -NavigationLayout Permanent -Navigation $Navigation -Content {

  new-udbutton -text "click" -OnClick {
      show-udtoast -message "$($query["site"])"
      $query["site"] | out-file C:\Temp\site.txt -append
  }

}

$query value stays to the same value it gets on page load.

Expected behavior

$query updates

Actual behavior

$query stays the same value as it was on the initial page load.

Additional Environment data

No response

Screenshots/Animations

No response