If your view is using an alternate extension and you have elements that share filenames, the incorrect element would be used. Fixes #2082