Use class instead of URL for dynamic route detection