in reply to Re^2: Mojolicious: Optional placeholder and template name
in thread Mojolicious: Optional placeholder and template name

You should probably be using url_for to ensure deployment portability. See Mojolicious::Controller.