On Fri, 2013-01-04 at 23:50 +0000, Pedro Melo wrote:
> > Adding is_index like is_dhandler to Mason::Component::ClassMeta and
> > check for this in _build_match_request_path should fix the real
> problem.
> 
> Depends on your definition of what the real problem is :). You use
> case is only one situation. Add dhandlers or components with
> allow_path_info => 1 and the redirect is no longer the correct
> behaviour. 
The redirect is not the real problem, the real problem is that index.mc
without allow_path_info => 1 is ignored if a directory (not root) is
accessed with ending slash since the changes in 2.20. 
The component matching algorithm from Mason::Manual::RequestDispatch is
fine (the one in the code in front of _build_match_request_path is
wrong/outdated).

The redirect stuff is much more complicated as everyone has different
requirements. From my point of view a Mason::Plugin might be the best
solution, for example around Mason::Request::match_request_path.

Regards,
Oliver
-- 
Oliver Paukstadt <pst...@sourcentral.org>


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to