Fix views basePath with absolute path. Closes #1347