Let's say the public URL / faq is associated with the private path / faq / index in my Catalyst application:
package MyApp::Controller:FAQ;
sub index :Path {
[....]
How can I redirect / faq from another controller, here is how I can find out that the action for URL / faq is / faq / index? Sort of:
$c->forward(c->dispatcher->get_action_by_path( "/faq" ));
source
share