This commit is contained in:
parent
66297dc78a
commit
98e842f0b1
1 changed files with 4 additions and 0 deletions
|
@ -12,5 +12,9 @@ func EnsurePublicUrl(rawUrl string) string {
|
|||
if !strings.HasPrefix(rawUrl, "linstrom://") {
|
||||
return rawUrl
|
||||
}
|
||||
url := strings.TrimPrefix(rawUrl, "linstrom://")
|
||||
if replacement, ok := hardcodedUrls[url]; ok {
|
||||
return replacement
|
||||
}
|
||||
return strings.Replace(rawUrl, "linstrom://", "/", 1)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue