Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve incorrect redirect to 404 page on search fields #3959

Merged

Conversation

Mandeep56Singh
Copy link
Contributor

@Mandeep56Singh Mandeep56Singh commented Aug 15, 2024

fix : resolve incorrect redirect to 404 page on search fields

Closes #3949

Description

The search functionality in explore was redirecting users to a 404 error page
when they entered a query. This was caused by incorrect URL routing
in the search handle function

This commit fixes the routing logic by ensuring the search terms
are correctly encoded, thus preventing the 404 error.

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

OpenSauced.Insights.-.Javascript._.Dashboard.-.Google.Chrome.2024-08-15.23-48-15.mp4

Steps to QA

Tier (staff will fill in)

  • Tier 1
  • Tier 2
  • Tier 3
  • Tier 4

[optional] What gif best describes this PR or how it makes you feel?

Really sorry due to prettier some lines sorted unintentionally

Copy link

netlify bot commented Aug 15, 2024

‼️ Deploy request for oss-insights rejected.

Name Link
🔨 Latest commit 58819c8

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Compliance Checks Passed!

Copy link

netlify bot commented Aug 15, 2024

Deploy Preview for design-insights ready!

Name Link
🔨 Latest commit 58819c8
🔍 Latest deploy log https://app.netlify.com/sites/design-insights/deploys/66c7008f44b9b6000895038e
😎 Deploy Preview https://deploy-preview-3959--design-insights.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@brandonroberts brandonroberts changed the title fix : resolve incorrect redirect to 404 page on search fields fix: resolve incorrect redirect to 404 page on search fields Aug 15, 2024
@jpmcb jpmcb requested a review from a team August 19, 2024 15:41
Copy link
Contributor

@brandonroberts brandonroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🍕

@Mandeep56Singh
Copy link
Contributor Author

Mandeep56Singh commented Aug 22, 2024

@brandonroberts sorry it took long to apply changes, I am quite new to open source, So I didn't knew what to do.

@brandonroberts
Copy link
Contributor

@Mandeep56Singh no problem, thanks

@brandonroberts brandonroberts added this pull request to the merge queue Aug 22, 2024
Merged via the queue into open-sauced:beta with commit 298161d Aug 22, 2024
11 checks passed
open-sauced bot pushed a commit that referenced this pull request Aug 22, 2024
## [2.60.0-beta.3](v2.60.0-beta.2...v2.60.0-beta.3) (2024-08-22)

### 🍕 Features

* now you can copy the contributor confidence chart as an image ([#3966](#3966)) ([3291c6d](3291c6d))

### 🐛 Bug Fixes

* resolve incorrect redirect to 404 page on search fields ([#3959](#3959)) ([298161d](298161d))
open-sauced bot pushed a commit that referenced this pull request Aug 22, 2024
## [2.60.0](v2.59.0...v2.60.0) (2024-08-22)

### 🐛 Bug Fixes

* always show Add to Workspace button on repositories table ([#4003](#4003)) ([5954f32](5954f32))
* resolve incorrect redirect to 404 page on search fields ([#3959](#3959)) ([298161d](298161d))

### 🍕 Features

* copy OSSF Scorecard as image ([#4000](#4000)) ([690fb38](690fb38))
* copy repo page YOLO Chart as image ([#4014](#4014)) ([376dbe2](376dbe2))
* now you can copy the contributor confidence chart as an image ([#3966](#3966)) ([3291c6d](3291c6d))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Search fields redirects to 404 error page
3 participants