mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-21 06:31:51 +00:00
Begin paths with / in problem report.
Otherwise you get reports like:
(archive)
: directory shadows redirect "/ /foo 301"; remove the directory or use a 301! forced redirect instead
This commit is contained in:
@@ -148,7 +148,7 @@ func GetProblemReport(manifest *Manifest) []string {
|
||||
var report []string
|
||||
for _, problem := range manifest.Problems {
|
||||
report = append(report,
|
||||
fmt.Sprintf("%s: %s", problem.GetPath(), problem.GetCause()))
|
||||
fmt.Sprintf("/%s: %s", problem.GetPath(), problem.GetCause()))
|
||||
}
|
||||
return report
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user