[fix]resolve to absolute path

View path might be an absolute path under some special case.