fix URL prefix management