Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-UDPage and wildcard Url #141

fMichaleczek opened this issue May 4, 2018 · 2 comments


None yet
2 participants
Copy link

commented May 4, 2018

Steps to reproduce

Create 2 pages with 2 Url : one with wildcard and another that include previous path.

New-UDPage -Url '/Test/*' -Endpoint {
    New-UDHeading -Content { 'Test' }

New-UDPage -Url '/Test/Base/Item' -Endpoint {
    New-UDHeading -Content { 'Item' }

Expected behavior

don't know :)

Actual behavior

Page is merge. Each part seems to load async.

But I have recurring message :
20:23:59 CallbackCmdlet Failed to look up variables.

This scenario is supported ?

It's very interesting to create a menu or a header page for subpages.

foreach ( $UDPage in $UDDashboard.Pages.Where{ $_.Url -like "/Test/*" } ) {
     $PageUrl = if ( $UDPage.Url[-1] -eq '*' ) { $UDPage.Url.Substring(0, $UDPage.Url.Length-1) } else { $UDPage.Url }
     New-UDElement -Tag a -Attributes @{ href = $PageUrl } -Content { Split-Path $PageUrl -Leaf  }  

Environment data

  • Universal Dashboard 1.6.0-beta3
  • Windows 10 1709
  • PowerShell 5.1
  • Chrome 65.0.3325.181 (Official Build) (64-bit)

This comment has been minimized.

Copy link

commented May 4, 2018

CallbackCmdlet Failed to look up variables

@adamdriscoll adamdriscoll added the bug label May 7, 2018

@adamdriscoll adamdriscoll added this to the 2.2.0 milestone Nov 15, 2018


This comment has been minimized.

Copy link

commented Nov 15, 2018

Resolved in 2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.