Route not found issue

Hi,
My code that worked in phpmaker 2020 does not work in pPhpmaker2023 anymore:


ListOptions_Load(){
        $this->ListOptions->Add("facture"); 
	$this->ListOptions->MoveItem("facture", 0 );
	$this->ListOptions->Items["facture"]->Header = "<b>Imp. Facture</b>";



ListOptions_Rendered(){
$this->ListOptions->Items["facture"]->Body = "<a href='../fpdfreports/facture.php?id=".$this->id->CurrentValue."'" . $GLOBALS["vuefacture"]->id->CurrentValue . " target=\"_blank\"><img src=\"../images/facture.png\" alt=\"Facture\" height=\"30\" width=\"30\"></a>";		
	}

My link points to an invoice.php file contained in a “fpdfreports” directory and takes care of creating a pdf invoice for me.Under PHPMaker 2023, I have the error Route “/fpdfreports/facture.php” not found.Help please!

Since PHPMaker v2021, Routing is used. No need to include .php in your Route.

I still get the same error message after deleting the .php extension.

function ListOptions_Rendered() {
	// Example:
	//$this->ListOptions->Items["new"]->Body = "xxx";
		if($this->facture_reduite->CurrentValue == 'N'){
	   $this->ListOptions->Items["facture"]->Body = "<a href='../fpdfreports/facture/".$this->id->CurrentValue."'" . $GLOBALS["vuefacture"]->id->CurrentValue . " target=\"_blank\"><img src=\"../images/facture.png\" alt=\"Facture\" height=\"30\" width=\"30\"></a>";		
	}else{
	   $this->ListOptions->Items["facture"]->Body = "<a href='../fpdfreports/facture_reduite/".$this->id->CurrentValue."'" . $GLOBALS["vuefacture"]->id->CurrentValue . " target=\"_blank\"><img src=\"../images/facture_reduite.png\" alt=\"Facture\" height=\"30\" width=\"30\"></a>";			
	}
}

I specify that ‘facture.php’ is not a file that I created inside phpmaker. It is not a custom file but a file that I created independently and that I want to call in my code.
Do I have to use a custom file for the route to be automatically recognized or is it possible to create a route that redirects to my external file ‘facture?php’?

If you are requesting your own scripts, it won’t work because the project does not know the routes. You may sent request to your .php directly (make sure your path is correct as you are using relative paths, but you
want to read Using Route_Action server event.