Currently Core\Router()->to_url() method creates a URL according to the current mode routing rules. For example: When you are inside the CMS application there is no way to generate a URL that is pointing to a resource from another mode that has its own routing rules.
One possible solution would be either by introducing an optional second parameter of the method or ability to globally switch modes(change context) before and after each method execution.
Currently
Core\Router()->to_url()
method creates a URL according to the current mode routing rules. For example: When you are inside the CMS application there is no way to generate a URL that is pointing to a resource from another mode that has its own routing rules.One possible solution would be either by introducing an optional second parameter of the method or ability to globally switch modes(change context) before and after each method execution.