Append  paths for plugin in view class

When I call elements or view files of one plugin multiple times, this method run same process request by request, while using "cached" option.

This PR is from the issue #2047.