mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-08 15:47:50 +01:00
Fixed broken file field preview when using streams in the path
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
* Added new `onAdminListContentEditors` event to add a custom editor to the list of available
|
||||
1. [](#bugfix)
|
||||
* Use `Pages::find()` instead of `Pages::dispatch()` as we do not want to redirect out of admin
|
||||
* Fixed broken `parent` field when using the old pages
|
||||
* Fixed broken `parent` field when using the old pages
|
||||
* Fixed broken `file` field preview when using streams in the path
|
||||
|
||||
# v1.10.0-rc.11
|
||||
## 05/14/2020
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
{% set blueprint_name = type ~ '/' ~ blueprint_name %}
|
||||
{% endif %}
|
||||
{% set blueprint = base64_encode(blueprint_name) %}
|
||||
{% set real_path = value.thumb ?? global.context.media[path].relativePath ?? global.form.getPagePathFromToken(path) ?? global.admin.getPagePathFromToken(path) %}
|
||||
{% set real_path = (value.thumb ?? global.context.media[path].relativePath ?? global.form.getPagePathFromToken(path) ?? global.admin.getPagePathFromToken(path))|ltrim('/') %}
|
||||
|
||||
{% set remove = global.file_task_remove ? global.file_url_remove : uri.addNonce(
|
||||
global.file_url_remove ~
|
||||
|
||||
Reference in New Issue
Block a user