#double#hashtags and @username#hashtags for nodes and comments
Clicking on a link in the format #hashtag in a research note, wiki, or comment now takes you to https://publiclab.org/tag/hashtag (or corresponding tag name) as of #138.
@mathewlippincott suggested a more advanced syntax:
#double#hashtag would take you to a listing of notes with both tags -- this could be at an address like https://publiclab.org/tags/first+second, or https://publiclab.org/tags/first/second -- run from a tags_controller method called "multiple" maybe?
@username#hashtag would take you to notes of that tag for that user -- this could be at an address like https://publiclab.org/author/name/tag/hashtag -- run from a tags_controller method called "author" maybe?
The controller is here: https://github.com/publiclab/plots2/blob/master/app/controllers/tag_controller.rb
The filtering code in #531 is a good example of how to implement this in display of a) research notes, b) wiki revisions and c) comments.
Extra care must be taken with these as the Regex pattern should take precedence over either @mentions or #hashtags alone.
@jywarren Could you give a scenario where two merged hashtags would be used ? I get the general idea of displaying results that contained 2 hashtags simultaneously but from where would the users be able to click on those ?
Hi, I came across this issue while exploring tag parsing improvements.
I understand the proposal for handling:
- #doublehashtags for combined tag filtering
- @username#hashtag for user-specific tag views
Before diving in, I wanted to check:
- Is this issue still relevant with the current codebase?
- Would maintainers be open to revisiting this enhancement now?
Happy to explore the current tag parsing logic and suggest an approach if this is still needed. Thanks!