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

KrypticBit created an issue. See original summary.

Znak’s picture

Status: Active » Postponed

Sorry, but I can't reproduce your problems. Please, give me more info for reproduce this error.

KrypticBit’s picture

Hi,
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.

Engineer_UA’s picture

These 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.

Engineer_UA’s picture

Status: Postponed » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mgstables’s picture

Why is status = fixed? It is not implemented in the 8.x-1.x-dev. I still have that error.

mhamed’s picture

Thanks 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 admin
even if the path for admin is /user/admin/1
I think the problem comes from the implementation of drupal api in javascript

Ahmad Abbad’s picture