Skip to content

CliRouter - Presenter tries to canonize the URL and redirect #217

Open
@genesiscz

Description

@genesiscz

Version: 3.0.0

Not sure if I missed something, but after update to 3.0.0 my cron scripts stopped working. I got them bound to Live:cron presenter for example. Running them with php /var/www/www/index.php Live:cron --do=cron --type=cloudTasks

The response is

<h1>Redirect</h1>

<p><a href="http:/live/cron?do=cron&amp;type=cloudTasks">Please click here to continue</a>.</p>

Steps To Reproduce

In my RouterFactory I use

		$router = new RouteList();
		$router[] = new \Nette\Application\Routers\CliRouter();

now run the project with the example command above and see the result.

Expected Behavior

Not autoCanonicalize the CLI requests

Possible Solution

$autoCanonicalize to false as a temporary solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions