Added support for folder URL detection.