z0ccc/comet

FR: Offer more general URL if current one has no posts

ognsya opened this issue · 1 comments

If an URL has no posts, I'd usually still be interested to have the option to check for posts on a more general URL.

For example, right now if I go to this URL (for an article in BBC):
"https://www.bbc.co.uk/news/live/world-europe-63454915"

I get the message:
"No posts found. Submit it."

I'd like this message to be expanded to:
"No posts found. Submit it or choose a different URL:
https://www.bbc.co.uk/news/live"

Where
If I click on "live", it shows posts for the URL up to "live".
If I click on "news", it shows posts for the URL up to "news"
If I click on "https://www.bbc.co.uk" it shows posts for the main website.

Might even be useful to somehow have this option even if there are posts for the current URL.

Another case where this would be useful is this very URL I'm on right now:
"https://github.com/z0ccc/Upvote-Anywhere/issues/new"

I would then be able to (in one click) check posts related to "https://github.com/z0ccc/Upvote-Anywhere"

Jogai commented

Or for instances where people post links like https://www.bbc.co.uk/news/live/world-europe-63454915?ref=someDomain