Remote site with not empty path in app root fails to follow links
mattconnolly opened this issue · 1 comments
mattconnolly commented
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
phillbaker commented