 
         callback null,
           id: res.body.local_id
-          url: url.resolve(BASE_URL, "#{config.username}/#{config.repo}/issue/#{res.body.local_id}")
+          url: url.resolve(BASE_URL, "#{config.repo}/issue/#{res.body.local_id}")
 
   @receiveEvent: (config, event, callback) ->
     if event?.trigger?.type == "reopened"

      "kind": config.kind
      "priority": config.priority

    # Send the request
    @bitbucketRequest(@request.post(@issuesUrl(config)), config)
      .send(qs.stringify(query_object))

  BASE_URL = "https://bitbucket.org"

  @issuesUrl: (config) ->
    "#{BASE_URL}/api/1.0/repositories/#{config.repo}/issues"

  @issueUrl: (config, issueId) ->
    @issuesUrl(config) + "/" + issueId
