浏览代码

fix(plugins): fixed failing unit tests, fixes #4280

Torkel Ödegaard 9 年之前
父节点
当前提交
d2aaa2211e
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      pkg/plugins/frontend_plugin.go
  2. 1 1
      tests/app-plugin-json/plugin.json

+ 1 - 1
pkg/plugins/frontend_plugin.go

@@ -32,7 +32,7 @@ func (fp *FrontendPluginBase) initFrontendPlugin() {
 	fp.Info.Logos.Large = evalRelativePluginUrlPath(fp.Info.Logos.Large, fp.BaseUrl)
 
 	for i := 0; i < len(fp.Info.Screenshots); i++ {
-		fp.Info.Screenshots[i].Path = evalRelativePluginUrlPath(fp.Info.Screenshots[i].Path, fp.Id)
+		fp.Info.Screenshots[i].Path = evalRelativePluginUrlPath(fp.Info.Screenshots[i].Path, fp.BaseUrl)
 	}
 }
 

+ 1 - 1
tests/app-plugin-json/plugin.json

@@ -3,7 +3,7 @@
   "name": "App Example",
   "id": "app-example",
 
-  "staticRoot":" ./public",
+  "staticRoot": ".",
   "module": "app",
 
   "pages": [