Skip to content
Snippets Groups Projects

Remove unwanted results from wiki basic search

What does this MR do and why?

Reject the files with uploads/ and .gitlab/redirects.yml paths. These paths should not be visible in the search results.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Create a wiki page.
  2. Upload an image with the name sample.(jpg|png|jpeg)
  3. Now change the Path of the wiki to sample
  4. Perform a basic search with the keyword sample.
  5. You should not see results with binary content and redirects.

Related to #389375 (closed)

Edited by Ravi Kumar

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading