I'm trying to replace all of my static routes with the CakePHP 3.8 Router::url()
method.
On my local environment, when accessing the the below code from the manage/lender-products/read/2
route, I get the expected results of /manage/lenders
from the below code:
\Cake\Routing\Router::url(['controller' => 'Lenders', 'action' => 'index'])
However, on production (bref.sh/AWS Lambda/PHP 7.4), I get the unexpected result of /manage/lender-products/read/manage/lenders
.
It appears that in my production environment, the URL is being generated and is including the current pages url in the end result.