goldilocks
goldilocks copied to clipboard
basePath is not being honored for static assets, e.g. CSS and Images
What happened?
setting the base path doesn't change the href for images and css
What did you expect to happen?
images and css to be downloaded and rendered
How can we reproduce this?
setg basePath
Version
4.10.0
Search
- [X] I did search for other open and closed issues before opening this.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Additional context
No response
Stevie was able to reproduce this. We'll take a look
Hello, just curious to know when this bug will be fixed?
I'm having the same problem.
Doesn't work 404- https://
The images do exist under /goldilocks/static/images/goldilocks.svg However the dashboard page is only linking to /static/images/goldilocks.svg
Still facing the same issue. I'm using the latest helm version 8.0.1
Is there any previous version that works waiting for the fix ?
This is due to the trailing slash that is missing in base href but can't find where it's done.
edit: it works with image 4.9.0 with latest helm chart
As a workaround one can use custom Ingress with a similar configuration:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /goldilocks/static/$1/$2
nginx.ingress.kubernetes.io/use-regex: 'true'
name: fairwinds-goldilocks-static
spec:
rules:
- host: your.host
http:
paths:
- backend:
service:
name: fairwinds-goldilocks-dashboard
port:
name: http
path: /static/(css|images|js|webfonts)/(.*)$
pathType: ImplementationSpecific
...
Confirmed this works in 4.9.0 image with latest helm chart. Are there any plans to fix this?
Please reopen.