Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #0
Problem/Motivation
(I think) it used to be that starting to type a tag that began with # would autocomplete.
Now it does not.
For example, putting #Sp into either the tag field in the advanced search, or editing an issue and starting to type #Sp in the tag field ... does not return matching anything.
But typing SprintW , does return and match the tag: #SprintWeekend
Proposed resolution
Fix it so # autocomplets matching tags that start with #
(Or change tags that start with # to not, and disallow tags with #)
Remaining tasks
?
User interface changes
No.
API changes
No.
Comments
Comment #1
tvn CreditAttribution: tvn commentedConfirmed. It would autocomplete such tags on D6.
Comment #2
YesCT CreditAttribution: YesCT commentedseems more than that. any old tag with a # also prevents adding new tags to autocomplete.
Comment #3
valthebaldComment #4
valthebaldIssue cannot be reproduced on any dev environment (including clean, untouched ones). When I start typing #Sp, it displays all hash-starting tags. I've checked that on https://sprint12-drupal.redesign.devdrupal.org/project/issues/search, https://sprint1-drupal.redesign.devdrupal.org/project/issues/search and https://sprint14-drupal.redesign.devdrupal.org/project/issues/search
Same for issue edit form.
Staging and live sites still do not display the list when search starts with #, so I believe it's environmental issue
Comment #5
drummI think the difference is that devwww sites use .htaccess files, while production and staging sites only use Apache configuration, forbidding .htaccess overrides.
Something is un-url-encoding the URL, so the now-literal # is treated as a fragment identifier and dropped.
Since new dev environments are on the way, and will also hard-code Apache configuration, I think the best place to fix this right now is staging.
Comment #6
valthebaldI confirm that dev without .htaccess and Clean URLs switched off autocompletes #-starting tags correctly
Comment #7
cafuego CreditAttribution: cafuego commentedI find that if I type '#' autocomplete returns nothing, but if I delete that '#' and type 'm' instead, autocomplete suggestions starting with # are displayed. Edit: Never mind, the autocomplete sorts items that contain 'm' but start with '#' first.
Comment #8
basic CreditAttribution: basic commentedThere are D7 updates to the static rewrites that need to be applied for D7 to function properly. I'm working on applying these now.
Comment #9
basic CreditAttribution: basic commentedThis should now be fixed, rewrite rules have been updated for drupal.org
Comment #10
tvn CreditAttribution: tvn commentedYep, works! Thanks, basic.