Wrong selected category dropdown when opening search via url

Words
198
Reading
1 min
9y
Listen to this post
~1 min

The Bug

When I open search via url, for some category, the selected category dropdown not match with the category in the url.

How to reproduce

  1. Open https://utopian.io/search/sub-projects/android
  2. The selected dropdown become Projects. It should display Sub-Projects instead.
    Screenshot (8) - Copy.png

Try different category (Tutorials)

Screenshot (9).png

Expected result

For example, open https://utopian.io/search/documentation/android, and the dropdown updated to "Documentation".
Screenshot (15).png

Comparison

This is a comparison table with result for each category that I tested, There is 4 category that display "Projects" while the remaining 10 category display correct category.

CategoryURLDisplayConclusion
ProjectslinkScreenshot (16).pngTrue
SuggestionslinkScreenshot (17).pngTrue
Sub-ProjectslinkScreenshot (18).pngFalse
DevelopmentlinkScreenshot (19).pngTrue
Bug ReportslinkScreenshot (20).pngTrue
TranslationslinkScreenshot (21).pngTrue
GraphicslinkScreenshot (22).pngTrue
AnalysislinkScreenshot (23).pngTrue
VisibilitylinkScreenshot (29).pngTrue
DocumentationlinkScreenshot (24).pngTrue
TutorialslinkScreenshot (25).pngFalse
Video TutorialslinkScreenshot (26).pngFalse
CopywritinglinkScreenshot (27).pngFalse
Blog PostslinkScreenshot (28).pngTrue

Wrong result list

Here the list of 4 category that display wrong dropdown:

System

  • Google Chrome Version 63.0.3239.132 (Official Build) (64-bit)
  • Mozilla Firefox 57.0.4 (64-bit)
  • Windows 10 Pro (64-bit)
  • Found on 9 January 2018



Posted on Utopian.io - Rewarding Open Source Contributors

Wrong selected category dropdown when opening search via url | Ecency