CRM-13677 civicrmtheme clean query off url string before deciding if it ...

...is public or not

This works with the 4 variants I tried (with & without clean urls, with & without aliases) - see notes in ticket