When using New-UDApp with -PageNotFound the default page "reset-password" is not working anymore

When using New-UDApp with -PageNotFound the default page "reset-password" is not working anymore

avatar

Hi,

when i am using `PageNotFound` and `NotAuthorized` parameter for `New-UDApp` i cannot view the "reset-password" page when i run an app on "/" as `BaseUrl`.
When the password of PSU Admin acccount or other local accounts expires, the scriptblock in PageNotFound will be triggered and in my use case i will be redirected to a custom page.
I do not know if this is also the same for other integrated urls that are located at "/".
Anyone else have this? Can this please be reproduced/fixed?

Demo code (AI generated, not tested, but parameters and usage are the same as for my use case):

New-PSUApp -Name 'BugReport-ResetPassword' -BaseUrl '/' -Authenticated -Content {

    New-UDApp `
        -Title 'Bug Report Demo' `
        -PageNotFound {
            New-UDTypography -Text 'Custom PageNotFound'
        } `
        -NotAuthorized {
            New-UDTypography -Text 'Custom NotAuthorized'
        } `
        -Content {

            New-UDTypography -Text 'Home Page'

        }

}


Thanks
René

All Comments (0)