niced up redirect-url handling