fixing the order of public URL components