Fix mobile permalink

Mobile generated permalinks didn’t load `baseLayer_href` & `tree_layers` correctly on mobile. Fixes #943