Fix views being returned that contain repeated /

if viewPath is "/" or ends with "/", or
if flowId is, begins with, or ends with "/", or
if name/path is or begins with "/",
view will have "//" in it which is clearly wrong
and messes up view resolution later on