fix creating emty folder path on non portal url