Silly noob question, but I am having trouble with an App showing subsequent pages. It loads the default page, but all links are “Page Not Found” I’ve tried various formats and even saw some issues a long time about with https, but nothing seems to work. Can someone look at my code and give some pointers? Thanks!
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$Navigation = {
New-UDListItem -Label "Home - $(Get-Date)"
New-UDListItem -Label "Email Stuff" -Children {
New-UDListItem -Label "START" -Href '/start'
New-UDListItem -Label "Start Test" -OnClick {New-UDPage -Name 'start'}
New-UDListItem -Label "Working Name" -OnClick {Get-UDPage -Name 'working'}
New-UDListItem -Label "Purchasing" -Href '/purchasing'
}
}
$Pages = @()
$Pages += New-UDPage -Name 'form_test' -Content {
New-UDTypography -Text "Hello"
} -NavigationLayout permanent -LoadNavigation $Navigation
New-UDApp -Title "Hello, World!" -Pages $Pages
Product: PowerShell Universal
Version: 4.2.12