Incorrect titles on user registration page
| Project: | userlink |
| Version: | 5.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
I've noticed that the userlink module is having an unexpected effect on the page title on the user registration page.
What's happening:
- userlink is active and has submitted content - let's assume that last user to create a userlink was Bob
- when an anonymous user goes to register, the title in the browser header and at top of page is set to "Bob's links" instead of "User account"
Cause:
I inspected the code and found what is causing it, but don't fully understand why. In userlink.module, function userlink_view(), the line:
menu_set_location($breadcrumb);
which is line 354 is setting the title by setting the menu context.
I've verified that commenting out this line corrects the problem. Can anyone confirm this?
I'd be happy to help if someone points me in the right direction.
Thanks
Faisal
