#double#hashtags and @username#hashtags for nodes and comments #533
Labels
enhancement
explains that the issue is to improve upon one of our existing features
help wanted
requires help by anyone willing to contribute
Ruby
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.The text was updated successfully, but these errors were encountered: