f3-factory / fatfree-core

Fat-Free Framework core library
GNU General Public License v3.0
207 stars 88 forks source link

reroute() trims port number if domain is localhost:8000 #343

Closed pixeline closed 2 years ago

pixeline commented 2 years ago

(using latest stable 3.8.0)

When working locally, my app runs on 'localhost:8000' as set in the .ini file:

WWWROOT=http://localhost:8000

Everything runs as it should until i use reroute as in :

    $f3->reroute('@quote_action(@action=view,@author='.$author->slug.',@slug=' . $quote->slug . ')');

it redirects correctly, but the port is stripped out of the URL.

ponasromas commented 2 years ago

Try to quote:

WWWROOT="http://localhost:8000"

ikkez commented 2 years ago

Cannot reproduce this issue. Also I'm not sure where your ini or WWWROOT came from or how your environment is set up. Hence there's nothing we can do here.