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

plugin didn't rewrite url path resources #672

Closed
wounkun opened this issue Oct 19, 2022 · 1 comment · Fixed by #1348
Closed

plugin didn't rewrite url path resources #672

wounkun opened this issue Oct 19, 2022 · 1 comment · Fixed by #1348
Assignees
Labels
bug Something isn't working involved:Frontend

Comments

@wounkun
Copy link

wounkun commented Oct 19, 2022

image

I got a problem on grafana that reversed by nginx which has different root url, example: %(protocol)s://%(domain)s/grafana/. Plugin page opening CSS-file with incorrect url path:

https://host/grafana/public/plugins/grafana-oncall-app/img/grafanaGlobalStyles.css

@teodosii
Copy link
Member

Opened a PR here #1348

This will most likely fix this issue as now we will no longer import by path, instead append the whole css to the head element.

teodosii added a commit that referenced this issue Feb 24, 2023
…1348)

# What this PR does

Fixed #672 so that we import the css as a whole and add it as a `style`
element, instead of relying on path location which can differ if url is
rewritten.

## Which issue(s) this PR fixes

#672 

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated
brojd pushed a commit that referenced this issue Sep 18, 2024
…1348)

# What this PR does

Fixed #672 so that we import the css as a whole and add it as a `style`
element, instead of relying on path location which can differ if url is
rewritten.

## Which issue(s) this PR fixes

#672 

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working involved:Frontend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants