Fixed relative url issue in ajax upload and added rel tags to pagination fragment