mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Fix null host value in layout.html.twig
This commit is contained in:
parent
414e87b58b
commit
b198e240ce
@ -254,7 +254,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// prepare the api enpoint
|
// prepare the api enpoint
|
||||||
{% if endpoint == '' and app.request is defined and app.request.host -%}
|
{% if endpoint == '' and app.request is not null and app.request.host -%}
|
||||||
var endpoint = '{{ app.request.getBaseUrl() }}';
|
var endpoint = '{{ app.request.getBaseUrl() }}';
|
||||||
{% else -%}
|
{% else -%}
|
||||||
var endpoint = '{{ endpoint }}';
|
var endpoint = '{{ endpoint }}';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user