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

conflicting api path #1576

Closed
augiaugi opened this issue Mar 29, 2020 · 3 comments
Closed

conflicting api path #1576

augiaugi opened this issue Mar 29, 2020 · 3 comments
Labels
bug Something isn't working v3
Milestone

Comments

@augiaugi
Copy link
Contributor

Describe the Issue

cannot use enpoint path /user and /user/:id (I cannot test this with v3 because of another bug, but this was the case in v2.9)

I am having two endpoints this are in conflict.

  • /user - static page
  • /user/:ID - dynamic page with params
    after changing the dynamic page to e.g. /object/user/:ID anything is working fine.

It would be great if i can use the endpoint /user/:ID (this should be possible as I am using the same structure in ASP.Net Core)
And maybe the error message should also be changed or maybe this is only confusing me

Script Sample

New-UDPage -Url '/user' -Endpoint {
    New-AppBar -Titel 'User'

    New-UDTextbox -Id 'txtTextfield' -Label 'First Name' 
}

New-UDPage -Url "/user/:ID" -Endpoint {
    param($ID)

    New-AppBar -Titel "User [$ID]"
    
    New-UDTextbox -Id 'txtUser' -Label 'user' -Value $ID
}

Version Information

  • Operating System: Win10
  • PowerShell Version: 5.1.17763.1007
  • Universal Dashboard Version: v3.0.0-beta1
  • UD Hosting Method: Powershell
@augiaugi augiaugi added the bug Something isn't working label Mar 29, 2020
@augiaugi
Copy link
Contributor Author

@adamdriscoll please assign v3.0.0-beta1 label

@adamdriscoll
Copy link
Member

This issue has been mentioned on Ironman Software Forums. There might be relevant details there:

https://forums.universaldashboard.io/t/empty-page-error/2420/9

@adamdriscoll
Copy link
Member

This is resolved in tonight's build.

@adamdriscoll adamdriscoll added this to the 3.0.0-beta2 milestone Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3
Projects
None yet
Development

No branches or pull requests

2 participants