add consistent handling of starred layers and compact mode in read/updateURL