remove layers from permalink URL when switching topics; fixes #7