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

OrleanDashboard Orleans 7 - CSS files is failing due to not considering the relative path for stylesheets #408

Open
DilanJayamuni opened this issue Sep 4, 2023 · 8 comments

Comments

@DilanJayamuni
Copy link

DilanJayamuni commented Sep 4, 2023

Hey!

We would like to have Orleans Dashboard running behind Ingress with path based routing. We have an issue in which loading the CSS files is failing due to not considering the path. How can we make the dashboard relative or perhaps override the path to add a route in the beginning?

We are using Orleans 7 and Our framework is .Net Core 7

This is a screenshot of the problem we are facing now when loading the Dashboard.
image

Thanks

@richorama
Copy link
Member

Hi, the path is relative, I have seen problems like this that have been fixed when you add a trailing slash to the URL, to indicate that it's a path not file.

@DilanJayamuni
Copy link
Author

DilanJayamuni commented Sep 5, 2023

Hi Richorama, Thanks for your reply. Can you tell me how to add relative path with example and What dashboard option I need to use with "UseDashboard"?

Thanks

@richorama
Copy link
Member

Whatever you put as the path setting is substituted here:

https://github.com/OrleansContrib/OrleansDashboard/blob/master/OrleansDashboard/Index.html#L6

so I would suggest using just dashboard or similar with no slashes

@richorama
Copy link
Member

I'll have a go at doing a repro later

@KhushbooRS
Copy link

@richorama
I am using orleansBuilder.UseDashboard() and in for dasboard option I have give base path as {AppName}/Dashboard
It is working in local as I specified port but as soon as I make it public with ingress it is not working.
Hence having issue with path based routing with ingress. Please help

@KhushbooRS
Copy link

@richorama Can you please help. We have tried to give path in Ingress like {AppName}/Dashboard but css files and js files relative path issue still persists

@KhushbooRS
Copy link

Can anyone please address the issue I am observing due to ingress

@KhushbooRS
Copy link

After scratching head for quite long time found the solution... giving scriptPath and CssPath worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants