[UPDT] BASE: Uri return statement for statics

This commit is contained in:
Horilla
2024-06-13 12:11:30 +05:30
parent 99ff1eac59
commit b27f8bc0d9

View File

@@ -616,7 +616,8 @@ def link_callback(uri, rel):
Convert HTML URIs to absolute system paths so xhtml2pdf can access those
resources
"""
print(uri)
if not uri.startswith("/static"):
return uri
uri = "payroll/fonts/Poppins_Regular.ttf"
result = finders.find(uri)
if result: