Fixed incorrect path creation and added base url info.