Fixes #4476: Static files are now recognized as views

With tests!