Fix friendlyurls