We're trying to let the "user" narrow the scope of the questions displayed by using tags, but in a non-compounding way. We would like the user to be able to craft a URL that has the following behavior:
questions/?set_tags=tag1 - Displays questions that have tag1.
questions/?set_tags=tag2 - Displays questions that have tag2.
Note that with the current behavior, after the 2nd URL, we would display questions with tag1 and tag2 only.
Askbot supports tags via the /questions/?tags=tag1,tag2 URL.
However, the tags "accumulate".
For example, I can do /questions/?tags=tag1 which displays all the tag1 questions.
After, I do a /questions/?tags=tag2 which will then display tag1 AND tag 2 questions.
I can clear the tags with the /questions/?start_over=true
What we would like is the ability to have a URL that always starts over. What I was thinking is compounding the URL elements:
questions/?start_over=true?tags=tag1,tag2
That's not supported right now... with ?start_over=true, we clear the filter in all cases and don't apply the tags.
As an alternative, we could have a different URL like ?display_tags=tag1,tag2 which would always start-over. This might make for a nicer URL.
Benoit, it is not clear unfortunately what you expect... Clicking the logo always resets entire search query (tags, query string, goes back to default scope - "all" and sort order - by decscending activity).
There is one extra detail. If you do search, then go to some question, then hit the "questions" tab - you get back to the search results, but if you hit "questions" again, everything should reset.
Do you somehow get stuck that you can't reset the tags? I may be specific to your fork.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2011-05-05 11:20:20 -0500
Seen: 35 times
Last updated: May 05 '11
Can the interface for searching with tags be improved?
ignored tags update doesn't force refresh
Is there a way to purge unused tags from the DB?
Ability to use wildcard with tags
Tag subscription statistics commands
Can tag preferences be displayed in the profile(/subscriptions) view?
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.