{"action":"opened","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/2239","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/2239/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2239/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/2239/events","html_url":"https://github.com/Codeception/Codeception/issues/2239","id":98874471,"number":2239,"title":"seeLink does not match exactly","user":{"login":"cbojar","id":1691284,"avatar_url":"https://avatars.githubusercontent.com/u/1691284?v=3","gravatar_id":"","url":"https://api.github.com/users/cbojar","html_url":"https://github.com/cbojar","followers_url":"https://api.github.com/users/cbojar/followers","following_url":"https://api.github.com/users/cbojar/following{/other_user}","gists_url":"https://api.github.com/users/cbojar/gists{/gist_id}","starred_url":"https://api.github.com/users/cbojar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbojar/subscriptions","organizations_url":"https://api.github.com/users/cbojar/orgs","repos_url":"https://api.github.com/users/cbojar/repos","events_url":"https://api.github.com/users/cbojar/events{/privacy}","received_events_url":"https://api.github.com/users/cbojar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T02:18:02Z","updated_at":"2015-08-04T02:18:02Z","closed_at":null,"body":"When writing tests with `seeLink` does not perform exact pattern match on the URL path. It matches a link that simply _contains_ the pattern, rather than looking for a link that matches exactly. So for example, if we have `<a href=\"/about/\">About</a>` (and that is the only link with the content \"About\"), `$I->seeLink('About', '/');` will match.\r\n\r\nThe documentation states that [the pattern will match exactly](http://codeception.com/docs/modules/PhpBrowser#seeLink). The [XPath only does a `contains` match](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Lib/InnerBrowser.php#L207), though. I'm not sure if this is the intended behavior, and the documentation is wrong, or vice-versa.\r\n\r\n(PHP 5.5.9, Codeception 2.1.1)"}}