fixup custom url handling