jeroenvandijk/capybara-mechanize — Issue #31: Remote site with not empty path in app root fails to follow links
Author: mattconnolly
Created: 2012-02-05 12:18:36+00:00
State: open

When using Capybara-mechanize to test a remote (PHP) application that has a not empty app root url, following links on the site fails. For example, if the app is located at "http://localhost/myapp" and there's a link to a login page that goes to "/myapp/login" (which works correctly from all web browsers), this driver will follow the link to "http://localhost/myapp/myapp/login" which does not work.

The problem appears to be caused in the File.join call in lib/capybara/mechanize/browser.rb:169