Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A aurweb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 85
    • Issues 85
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • aurweb
  • Issues
  • #397
Closed
Open
Issue created Oct 01, 2022 by Ross V@rossvor3 of 3 checklist items completed3/3 checklist items

Keyword badges link to "Name, Description" search

Checklist

  • I confirm that this is an issue with aurweb's code and not a user-uploaded package.
  • I have described the bug in complete detail in the Description section.
  • I have specified steps in the Reproduction section.

Description

Clicking on keyword "badge" goes to a search page using "Name, Description" search type, instead of "Keywords" search type. This can produce unexpected results.

Reproduction

  1. Open https://aur.archlinux.org/packages/tensorrt
  2. Click on "ai" badge in "Keywords:" section.

Result: search results contain listings unrelated to AI and which do not necessarily have "ai" keyword assigned.

Expected: search results with "ai" keyword assigned to them only.

Potential fix:

I'm not familiar with the dev setup, but with a brief search, I think these lines should be changed:

web/template/pkgbase_details.php

81:             echo get_uri('/packages/') . '?K=' . urlencode($kw) . '&SB=p';

to

81:             echo get_uri('/packages/') . '?K=' . urlencode($kw) . '&SeB=k';

web/template/pkg_details.php

152:            echo get_uri('/packages/') . '?K=' . urlencode($kw) . '&SB=p';

to

152:            echo get_uri('/packages/') . '?K=' . urlencode($kw) . '&SeB=k';

templates/partials/packages/details.html

56:                       href="/packages/?K={{ keyword.Keyword }}&SB=p"

to

56:                       href="/packages/?K={{ keyword.Keyword }}&SeB=k"
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking