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

(This post was last modified: 05-18-2020, 09:13 AM by divpusher.)

Thanks! It's a nice workaround and I don't have to rewrite all the to() and back() functions! BTW I tracked down the issue to current_url() function, that's where the subdomain goes missing.

(05-18-2020, 04:33 AM)ARAmiss Wrote: You can define baseURL property in App config (Config/App) like this:
PHP Code:
    public function __construct()

        $this->baseURL 'https://' $_SERVER['HTTP_HOST'] . '/';

    public $baseURL null

Messages In This Thread
RE: subdomain is lost on redirect()->to() - by divpusher - 05-18-2020, 08:24 AM

Theme © iAndrew 2016 - Forum software by © MyBB