You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a website with only an index.html and an application with alias ui that host UD (with a modified base href set to /ui/), browsing to https://my.domain.tld/ui result in a Page Not Found error inside the React app. The header/footer/navbar are loaded correctly, but the pages aren't. You can manually browse to the page using https://my.domain.tld/ui/page_name but all links in the app seem to be broken.
To Reproduce
Steps to reproduce the behavior:
Setup a website in IIS, in the site's root, simply put an index.html to confirm the site is working and keep things simple.
Under that website in IIS add an application with a virtual path of /ui and a physical path that points to your UD folder.
In the UD folder, ensure the <base href="/ui/"/> is present in the <head> of client/index.html
In the UD folder, create a dashboard.ps1 file with this content:
$Pages=@(
(New-UDPage-Name "Home"-Icon "home"-Content {
New-UDRow-Columns {
New-UDColumn-Size 12-Endpoint {
New-UDHeading-Text "This is the home page"
}
}
} -DefaultHomePage),
(New-UDPage-Name "ui/Test"-Icon "book"-Content {
New-UDRow-Columns {
New-UDColumn-Size 12-Endpoint {
New-UDHeading-Text "This is the second page"
}
}
})
)
$Dashboard=New-UDDashboard-Title "Nested Dashboard"-Page $PagesStart-UDDashboard-Dashboard $Dashboard-Wait
Browse to your.domain.tld/ui
Expected behavior
Fully working dashboard with all links working correctly.
Actual behavior
Browsing to your.domain.tld/ui shows a Page not found error
Browsing to your.domain.tld/ui/Home correctly shows the Home page
Clicking on the NavBar's Home link brings you to your.domain.tld/Home Broken of course, since invalid path
Browsing to your.domain.tld/ui/Test shows a Page not found error
Browsing to your.domain.tld/ui/ui/Test correctly shows the Test page
Clicking on the NavBar's Test link brings you to your.domain.tld/ui/Test Showing Page not found as above
I was unable to get UD working in a nested setup without using an application under IIS. This always resulted in IIS failing to start UD with error ...failed to start process with commandline ' ', ErrorCode = '0x80070057 : 0. in the event log. I suspect a step is missing in the documentation for this to work. In any case, because of other considerations, I would definitely need this to work as a separate application running under another AppPool user with some different settings.
The text was updated successfully, but these errors were encountered:
Thanks for the fix! Is this available in the enterprise nightly build? And if so, is the nightly build solid enough for development until the next official release?
Tonight's nightly will be much more stable. I had to make some changes to the way that session and connections were being tracked so there were likely issues but my latest PR should fix those.
Describe the Issue
Based on https://github.com/adamdriscoll/universal-dashboard-documentation/blob/master/running-dashboards/iis.md#creating-nested-iis-sites we only need to change
base href
if we want to host a dashboard under IIS as a nested site.Given a website with only an
index.html
and an application with aliasui
that host UD (with a modifiedbase href
set to/ui/
), browsing tohttps://my.domain.tld/ui
result in aPage Not Found
error inside the React app. The header/footer/navbar are loaded correctly, but the pages aren't. You can manually browse to the page usinghttps://my.domain.tld/ui/page_name
but all links in the app seem to be broken.To Reproduce
Steps to reproduce the behavior:
index.html
to confirm the site is working and keep things simple./ui
and a physical path that points to your UD folder.<base href="/ui/"/>
is present in the<head>
ofclient/index.html
your.domain.tld/ui
Expected behavior
Fully working dashboard with all links working correctly.
Actual behavior
Browsing to
your.domain.tld/ui
shows aPage not found
errorBrowsing to
your.domain.tld/ui/Home
correctly shows the Home pageClicking on the NavBar's
Home
link brings you toyour.domain.tld/Home
Broken of course, since invalid path
Browsing to
your.domain.tld/ui/Test
shows aPage not found
errorBrowsing to
your.domain.tld/ui/ui/Test
correctly shows the Test pageClicking on the NavBar's
Test
link brings you toyour.domain.tld/ui/Test
Showing
Page not found
as aboveVersion Information
Additional context
application
under IIS. This always resulted in IIS failing to start UD with error...failed to start process with commandline ' ', ErrorCode = '0x80070057 : 0.
in the event log. I suspect a step is missing in the documentation for this to work. In any case, because of other considerations, I would definitely need this to work as a separate application running under another AppPool user with some different settings.The text was updated successfully, but these errors were encountered: