Skip to content

Commit

Permalink
ui: Fix assets not loading when --web.prefix-header is used (#3234)
Browse files Browse the repository at this point in the history
* ui: Fix assets not loading when `--web.external-header` is used

Signed-off-by: Prem Kumar <[email protected]>

* Fix CHANGELOG

Signed-off-by: Prem Kumar <[email protected]>
  • Loading branch information
onprem authored Sep 26, 2020
1 parent 23831cc commit 933656b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re

## Unreleased

- [#3032](https://github.com/thanos-io/thanos/pull/3032) Query Frontend: Added support for Memacahce cache. Replaced underscores with hyphens in `log_queries_longer_than - > log-queries-longer-than`.
### Fixed

- [#3234](https://github.com/thanos-io/thanos/pull/3234) UI: Fix assets not loading when `--web.prefix-header` is used.

### Added

- [#3032](https://github.com/thanos-io/thanos/pull/3032) Query Frontend: Added support for Memacahce cache. Replaced underscores with hyphens in `log_queries_longer_than - > log-queries-longer-than`.
- [#3166](https://github.com/thanos-io/thanos/pull/3166) UIs: Added UI for passing a `storeMatch[]` parameter to queries.
- [#3184](https://github.com/thanos-io/thanos/pull/3184) Compact: Fix web.prefix-header to use &wc.prefixHeaderName
- [#3181](https://github.com/thanos-io/thanos/pull/3181) Logging: Add debug level logging for responses between 300-399
Expand Down
2 changes: 1 addition & 1 deletion pkg/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func absolutePrefix(prefix string) func() string {
if prefix == "" {
return ""
}
return "/" + prefix
return path.Join("/", prefix)
}
}

Expand Down

0 comments on commit 933656b

Please sign in to comment.