resolves url problems in sidebar