diff options
author | Brecht Van Lommel <brecht@blender.org> | 2024-06-17 08:16:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 14:16:14 +0800 |
commit | 597d1da96b92b181c106813ce26149334b2b44e5 (patch) | |
tree | 849dd929ac92427759deb57cd14e067cd517dba2 /templates | |
parent | f5dfd7d73cbc606ae65e5bab33efad1604b6331e (diff) | |
download | gitea-597d1da96b92b181c106813ce26149334b2b44e5.tar.gz gitea-597d1da96b92b181c106813ce26149334b2b44e5.zip |
Fix missing images in editor preview due to wrong links (#31299)
Parse base path and tree path so that media links can be correctly
created with /media/.
Resolves #31294
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index ebfdcb6a8f..4aa64c5376 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -22404,7 +22404,7 @@ "type": "object", "properties": { "Context": { - "description": "Context to render\n\nin: body", + "description": "URL path for rendering issue, media and file links\nExpected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}\n\nin: body", "type": "string" }, "Mode": { @@ -22427,7 +22427,7 @@ "type": "object", "properties": { "Context": { - "description": "Context to render\n\nin: body", + "description": "URL path for rendering issue, media and file links\nExpected format: /subpath/{user}/{repo}/src/{branch, commit, tag}/{identifier/path}/{file/dir}\n\nin: body", "type": "string" }, "FilePath": { |