Fix #342 Source editor was broken in modal mode + detect BASE tag if defined to recompute correct URLS in minisite.