Fixed host url join with /issues.json when base host url is related.

Example: http://developer.project.org/redmine/
Before my fix it made as a result http://developer.project.org/issues.json url which is wrong.