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.
When a user enters a message in the chat box the url to go to their profile isn't correct.
For the link it says
/undefineduser/1 /undefineduser/2
etc.
How do I fix this so the link points to the users profile?
Comments
Comment #2
Znak CreditAttribution: Znak commentedSorry, but I can't reproduce your problems. Please, give me more info for reproduce this error.
Comment #3
KrypticBit CreditAttribution: KrypticBit commentedHi,
I'm not sure how to reproduce it. I installed the module and the links in the chatbox doesn't point to the users profile. Indeed their user ID is correct but the /undefineduser/ breaks the link.
Comment #4
Engineer_UA CreditAttribution: Engineer_UA as a volunteer commentedThese errors in drupalchat.js file.
drupalSettings.basePath gives "undefined" because "basePath" property is absent in "drupalSettings" object.
You should use "drupalSettings.path.baseUrl" instead. This will resolve the issue.
Comment #5
Engineer_UA CreditAttribution: Engineer_UA as a volunteer commentedComment #7
mgstablesWhy is status = fixed? It is not implemented in the 8.x-1.x-dev. I still have that error.
Comment #8
mhamed CreditAttribution: mhamed commentedThanks for the question
I ve got the same problem here
whatever to change rebuilding the register
but
for example the url printed is always
/undefineduser/1
for admineven if the path for admin
is /user/admin/1
I think the problem comes from the implementation of drupal api in javascript
Comment #9
Ahmad Abbad CreditAttribution: Ahmad Abbad as a volunteer and commentedPlease check this
https://www.drupal.org/project/drupalchat/issues/3154119