fix: add custom url prefix if needed, for fanstatic
This commit is contained in:
parent
1dc632174e
commit
3f7de5872e
|
@ -201,6 +201,9 @@ def get_liburl(request, key, fallback=True):
|
|||
static = importlib.import_module(static)
|
||||
needed = request.environ['fanstatic.needed']
|
||||
liburl = needed.library_url(static.libcache) + '/'
|
||||
# nb. add custom url prefix if needed, e.g. /theo
|
||||
if request.script_name:
|
||||
liburl = request.script_name + liburl
|
||||
|
||||
if key == 'buefy':
|
||||
return 'https://unpkg.com/buefy@{}/dist/buefy.min.js'.format(version)
|
||||
|
|
Loading…
Reference in a new issue