zend-router
zend-router copied to clipboard
Config option to set TreeRouteStack::baseUri
In every project I see people working around the Url ViewHelper not working in console context.
If there was a config option like below we could have one standardized way of solving this.
<?php // config/autoload/server-url.local.php
return [
'server_url' => 'https://example.com'
]
Example of my latest workaround: https://stackoverflow.com/a/52248041/1899162
Secondarily we could then also use this option to make the ServerUrl ViewHelper work in console context.
@weierophinney do you want this PR for this repository or for Zend\View?
This repository has been closed and moved to laminas/laminas-router; a new issue has been opened at https://github.com/laminas/laminas-router/issues/3.