{"issue":{"created_at":"2011-12-08T10:51:54Z","state":"closed","updated_at":"2011-12-08T12:04:10Z","comments":3,"user":{"gravatar_id":"931970b8dc51b72e05e3a12b88612d61","id":8425,"url":"https://api.github.com/users/pupeno","avatar_url":"https://secure.gravatar.com/avatar/931970b8dc51b72e05e3a12b88612d61?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"pupeno"},"body":"I start a test by using Capybara's DSL in this way:\r\n\r\n```ruby\r\nvisit root_url(:host => \"tenant1.example.com\")\r\n```\r\n\r\nand then I do a simple:\r\n\r\n```ruby\r\nclick_link \"Developer\"\r\n```\r\n\r\nwhich is a link pointing to \"/auth/developer\". I would expect capybara to do a request to \"http://tenant1.example.com/auth/developer\", but it seems to be ignoring the current host and instead using the default one, ending with a request to http://example.com/auth/developer.\r\n\r\nI'll try to get more information about this issue and I'll post it here.\r\n","assignee":null,"id":2486185,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":561,"title":"Wrong absolute URL built from relative URLs","html_url":"https://github.com/jnicklas/capybara/issues/561","closed_at":"2011-12-08T12:04:09Z","url":"https://api.github.com/repos/jnicklas/capybara/issues/561","milestone":null},"action":"closed"}