bartervg / barter.vg

Track and hold discussion on Barter.vg bugs, enhancements, and other issues
https://barter.vg
MIT License
20 stars 4 forks source link

Searching `app/#` `sub/#` or `i/#` should go to the profile page #235

Closed bartervg closed 3 years ago

bartervg commented 3 years ago

What problem does this feature address?

app, sub and i strings refer to specific items, but search doesn't display them in results or automatically redirect. Other than to edit URLs, a searcher will not find the items in question.

Describe a solution

When searching app/ sub/ or i/ the page will redirect to the profile, or if it doesn't exist, the search results with a note that the profile doesn't exist.

Examples of similar features

Exact match titles redirect to the profiles. https://barter.vg/steam/app/# goes to the equivalent https://barter.vg/i/# if it exists.

Notes

Inspired by https://discord.com/channels/329829406153375755/329829406153375755/807634711601348678

bartervg commented 3 years ago

Search i/86849 leads to https://barter.vg/i/86849/? Search app/794260 or https://steamcommunity.com/app/794260/ leads to https://barter.vg/i/77103/? Search sub/451636 or https://store.steampowered.com/sub/451636/ leads to https://barter.vg/i/120709/? Search sub/99999999 or app/99999999 or i/99999999 that doesn't exist, leads to https://barter.vg/search?q=sub%2F99999999 and so on

Bad design potential If there were an item titled i/1, search would go to that profile instead of https://barter.vg/i/1/?