Fix absolute url generation. It possibly caused to change the protocol in the ajax.