Welcome Guest, Not a member yet? Register   Sign In
allowedHostnames not passed to link_tag
#1

I am running CI 4.3.3
I have multiple hostnames defined in Config\App.php :

PHP Code:
public array $allowedHostnames = ['host1','host2','host3']; 

And I have a "fake" base URL defined in my .env (as I would like to keep it portable transparently) :

PHP Code:
app.baseURL 'http://fake/' 

If I call base_url() or site_url(), everything works fine. It takes the relevant allowedHostname into account.
If I call link_tag() or script_tag(), only 'http://xxx/' into taken into account.

Is there a way to fix this?
Reply
#2

Upgrade to the latest version, CI4.4.5.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB