Revert "Fix: Problem with regex chars in directory, with view function"

This reverts commit 3f30aa9f477452f608b27ec9bc534f9bd3662932.