core icon indicating copy to clipboard operation
core copied to clipboard

Absolute url difference between root and subfolder

Open sabas opened this issue 8 years ago • 1 comments

I usually make my absolute urls like

echo Flight::request()->base."/route/1";

When installing it in a subfolder works correctly (I don't even set RewriteBase in the htaccess) But when I move the application to the root folder, the resulting url has 2 slashes, so I have to change the code like

echo Flight::request()->base."route/1";

In the form action normally I use (and it works) Flight::request()->base.Flight::request(()->url.

Am I doing something wrong? Could be similar to #193

sabas avatar Jan 24 '17 09:01 sabas

Seems like Flight::request()->base does not have a trailing slash when flight framework is installed in a subdirectory.

ghost avatar Sep 23 '18 12:09 ghost

#193

krmu avatar Jan 12 '24 08:01 krmu