mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 22:02:22 +08:00
plugins: fixes path issue on Windows
When loading a plugin and setting the path, an extra backslash sneaks when running on Windows. Fixes #9597
This commit is contained in:
@ -40,7 +40,7 @@ func getPluginLogoUrl(pluginType, path, baseUrl string) string {
|
||||
}
|
||||
|
||||
func (fp *FrontendPluginBase) setPathsBasedOnApp(app *AppPlugin) {
|
||||
appSubPath := strings.Replace(fp.PluginDir, app.PluginDir, "", 1)
|
||||
appSubPath := strings.Replace(strings.Replace(fp.PluginDir, app.PluginDir, "", 1), "\\", "/", 1)
|
||||
fp.IncludedInAppId = app.Id
|
||||
fp.BaseUrl = app.BaseUrl
|
||||
|
||||
|
Reference in New Issue
Block a user