Fix parameter error caused by re-use of variable
Fix folder tree enable / disable
Use str_replace to make URL relative