Modal dialog on XMLHttpRequest error
Better URL detection