mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 14:53:34 +01:00
Remove unnecessary ".Link" usages (#29909) (part 2)
5143ebb507
Add rel="nofollow" to issue filter links
has a test that fails because it assumes the link starts with the link
where it now starts with a ?
This commit is contained in:
parent
c758c5612e
commit
4061cb32f7
1 changed files with 1 additions and 1 deletions
|
@ -807,7 +807,7 @@ func TestIssueFilterNoFollow(t *testing.T) {
|
|||
htmlDoc := NewHTMLParser(t, resp.Body)
|
||||
|
||||
// Check that every link in the filter list has rel="nofollow".
|
||||
filterLinks := htmlDoc.Find(".issue-list-toolbar-right a[href*=\"/issues?q=\"]")
|
||||
filterLinks := htmlDoc.Find(".issue-list-toolbar-right a[href*=\"?q=\"]")
|
||||
assert.True(t, filterLinks.Length() > 0)
|
||||
filterLinks.Each(func(i int, link *goquery.Selection) {
|
||||
rel, has := link.Attr("rel")
|
||||
|
|
Loading…
Reference in a new issue