Welcome Guest, Not a member yet? Register   Sign In
redirect question
#4

(This post was last modified: 10-12-2021, 11:01 PM by paulkd.)

(10-12-2021, 04:00 PM)includebeer Wrote:
(10-11-2021, 03:13 AM)paulkd Wrote: Hi,

Can someone tell me why this is redirecting to localhost rather than the domain it is being executed on Huh

Code:
return redirect()->to('/admin/login');

You sure you don’t have “localhost” in app.baseURL in your .env file?

Bingo!  Big Grin

The setting was actually commented out. Uncommenting and changing to the correct domain resolved the issue.

Thanks!
Reply


Messages In This Thread
redirect question - by paulkd - 10-11-2021, 03:13 AM
RE: redirect question - by paliz - 10-11-2021, 09:18 AM
RE: redirect question - by includebeer - 10-12-2021, 04:00 PM
SOLVED: redirect question - by paulkd - 10-12-2021, 11:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB