 
     @Get: (id) ->
       item = new @()
-      url = @_GetURLBase() + "#{id}"
+      url = urljoin @_GetURLBase(), id
       $http(
         method: "GET"
         url: url

angular.module("restOrm", [
]).factory("Resource", ($http, $q) ->
  class Resource
    @urlPrefix: ''
    @urlEndpoint: ''


    @All: () ->
      collection = @_MakeCollection()
      url = urljoin @_GetURLBase()
      $http(
        method: "GET"
        url: url
