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.
Problem/Motivation
When inbox block is attached to the page, the thread html ID in inbox block is the same like thread on private message page.
Steps to reproduce
- Attach Private Message Inbox block, show only on
/private_messages /private_messages/*
pages
- Create 2 threads to users
- go to the /private_messages/1 page
- In dev tools, you can see that in source code
#private-message-thread-1
exists 2 times
Proposed resolution
- Use
Html::getUniqueId()
in PrivateMessageThreadViewBuilder.php class to generate unique ID - Check js scripts to avoid issues with selectors
- Write tests
Comment | File | Size | Author |
---|---|---|---|
#2 | private_message-unique_id-3025707-2.patch | 3.02 KB | lamp5 |
Comments
Comment #2
lamp5Comment #4
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commented