Welcome Guest, Not a member yet? Register   Sign In
subdomain is lost on redirect()->to()
#1
Bug 

Hello!

I love CI4, so far so good! Heart

I set up my site to handle subdomains as languages, e.g.:

mydomain.com
de.mydomain.com
fr.mydomain.com

The problem is when I redirect, it loses the subdomain, for example :

I'm on the page de.mydomain.com
I send a form, the controller redirects with this code:
Code:
return redirect()->to('/search');

I arrive to mydomain.com/search instead of de.mydomain.com/search
Reply


Messages In This Thread
subdomain is lost on redirect()->to() - by divpusher - 05-15-2020, 07:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB