I'm having a trouble regarding the trailing slashes when i used this code
$this->response->redirect( array( 'for' => 'admin', 'controller' => 'test' ));
and it gives me this "https://localhost/admin/test//" and what i want is "https://localhost/admin/test" and if I add this
$this->response->redirect( array( 'for' => 'admin', 'controller' => 'test', 'action' => 'index' ));
the result is this "https://localhost/admin/test/index/" , it should be like this "https://localhost/admin/test/index" .
My question is how can i remove the trailing slashes and how can I append ".html" as its extension?
"https://localhost/admin/test/index.html" or "https://localhost/admin/test.html"