Routermiddleware

RouterMiddleware analyses the URL segments to determine language, module, controller and action. It guards against directory traversal by checking each part. When a pipeline error is present it forwards the request to the Error controller. Extensive debug logging helps trace routing issues.