mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 04:57:40 +02:00
Fixed URL for preview of images
This commit is contained in:
@@ -95,7 +95,7 @@ export default class FilesField {
|
||||
const filename = encodeURI(file.text());
|
||||
|
||||
const URL = Object.keys(value).filter((key) => value[key].name === filename).shift();
|
||||
target.attr('href', `${config.base_url_relative_frontend}/${URL}`);
|
||||
target.attr('href', `${config.base_url_simple}/${URL}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
window.GravAdmin.config = {
|
||||
current_url: '{{ uri.route(true) }}',
|
||||
base_url_relative: '{{ base_url_relative }}',
|
||||
base_url_relative_frontend: '{{ base_url_relative_frontend }}',
|
||||
base_url_simple: '{{ base_url_simple }}',
|
||||
route: '{{ admin.route|trim('/') }}',
|
||||
param_sep: '{{ config.system.param_sep }}',
|
||||
{% if authorize(['admin.maintenance', 'admin.super']) %}
|
||||
|
||||
Reference in New Issue
Block a user