From 135dde247f7d5bc0314391a10d3a92f411507d02 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 11 May 2022 19:17:40 +0200 Subject: [PATCH] fixed static path generation --- cookbook/templatetags/custom_tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/templatetags/custom_tags.py b/cookbook/templatetags/custom_tags.py index f34eac8f4..7f09613b2 100644 --- a/cookbook/templatetags/custom_tags.py +++ b/cookbook/templatetags/custom_tags.py @@ -15,6 +15,7 @@ from cookbook.helper.mdx_attributes import MarkdownFormatExtension from cookbook.helper.mdx_urlize import UrlizeExtension from cookbook.models import Space, get_model_name from recipes import settings +from recipes.settings import STATIC_URL register = template.Library() @@ -157,7 +158,7 @@ def base_path(request, path_type): elif path_type == 'script': return request.META.get('HTTP_X_SCRIPT_NAME', '') elif path_type == 'static_base': - return static('vue/manifest.json').replace('vue/manifest.json', '') + return STATIC_URL @register.simple_tag