Hello!
I love CI4, so far so good!
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