Answers.Body: <p>I just tested on a site. Clicking the link as described above i get sent to </p>
  
  <p>user/2&amp;cid=39941</p>
  
  <p>and that page shows.</p>
  
  <p>BUT</p>
  
  <p>if instead I just click on the Contact ID / User ID |
  39941  / 2 that sits just under Tags on the Contact Summary screen</p>
  
  <p><a href="https://i.sstatic.net/BYTfH.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BYTfH.png" alt="enter image description here"></a> </p>
  
  <p>I get sent to </p>
  
  <p>user/2 and that sounds like it might work in your set up</p>
  
  <p>Does your Summary Screen not show that? (ie I wonder why you are not using that rather than going via Actions which is an extra click)</p>
  
  <p>I can't explain why the link with &amp;cid=YYY is failing for you </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-13T05:52:56.420Z
Answers.Text: Thanks for your answer, it does indeed present a useful workaround that we will likely use.  It also suggests that my problem is a misconfiguration rather than a bug.  I've given you a **useful** tick, but don't have enough reputation for that to stick.  I'll upgrade to **accept** if I don't get a better offer!
Answers.UserDisplayName: Rob Hills
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-13T06:06:39.560Z
Answers.Text: I gave your question and comment a +1 to help get you more reputable ;-)
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-13T06:07:57.597Z
Answers.Text: and agree. save your 'accept' in case someone comes along and gives you an explanation about how your config might be messed up, as I can't immediately point to anything
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-12T00:19:14.490Z
Answers.Text: I have run into the same issue. I think Rob Hills, you can rest assured that your configuration is correct. Every D7 site I have checked where /user/XXXX&cid=YYY results in a 404 page. If it were /user/XXXX?cid=YYY, it would be fine. 
  
  I suppose we will just have to wait for the 4.7.26 release.
Answers.UserDisplayName: Andrew Wasson
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-13T05:25:16.883Z
Answers.LastActivityDate: 2017-08-13T05:25:16.883Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>I can confirm that on all sites I have access to that this is an issue. I poked around the code and can not figure out why the cid is being appended to the url
  I'm going to submit this as a bug</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-09T11:00:34.500Z
Answers.Text: Eric's JIRA issue is https://issues.civicrm.org/jira/browse/CRM-21247, fixed for 4.7.26 in https://github.com/civicrm/civicrm-core/pull/11057 . I've replicated the issue & verified the fix on a 4.7.23 site.
Answers.UserDisplayName: davejenx
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-02T20:22:32.370Z
Answers.LastActivityDate: 2017-10-02T20:22:32.370Z
Answers.UserDisplayName: ericG
Answers.Body: <p>I just found this error in two client sites and testing in CiviHosting demo by selecting user record for demo contact has the same error.  it looks like the url is missing a / before the &amp;.   When the missing / is added to the url it goes to the correct page.</p>
  
  <p><a href="https://i.sstatic.net/3EhAd.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/3EhAd.jpg" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-19T03:02:14.030Z
Answers.Text: Other facts - our client sites are running civi 4.7.22 (after upgrading from 4.7.14).  Civi Hosting is running 4.7.20 so it seems to have been introduced between 4.7.14 and 4.7.20.
Answers.UserDisplayName: Dave T
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-19T13:18:10.957Z
Answers.Text: This AM, the same sites including CiviHosting demo work OK.   The url now is just https://civicrm.demo.civihosting.com/user/2 which does not include the CID info.  Any ideas on why the URL would change?  caching issues?
Answers.UserDisplayName: Dave T
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-20T06:38:52.180Z
Answers.Text: Thanks Dave, my html is now a bit rusty, but I wouldn't have expected a "/" before an "&" as the latter is usually a parameter to the path, which doesn't usually terminate with a "/", see https://en.wikipedia.org/wiki/URL
Answers.UserDisplayName: Rob Hills
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-20T07:06:20.380Z
Answers.Text: To test Dave's hypothesis about caching being a possible cause, I tried the following:
  1. Drupal: flush all caches;
  2. CiviCRM: Administer -> System Settings -> Cleanup Caches;
  3. CiviCRM: Administer -> System Settings -> Reset Paths.
  None of these has fixed my problem, the same broken link results.
Answers.UserDisplayName: Rob Hills
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-20T07:09:25.933Z
Answers.Text: Hmm, I obviously don't understand how markdown works on this site, can't get a numbered list to display properly, sorry!
Answers.UserDisplayName: Rob Hills
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-20T14:15:20.943Z
Answers.Text: Further usage, it is not working.  Not sure if my comment about it working was based on access by clicking on the drupal user ID in the contact record.    Also, I think the extra / was the equivalent of stripping the &cid=YYY suggestion.   So, I don't think it is a configuration issue based on the number of sites including demo that have the issue.
Answers.UserDisplayName: Dave T
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-19T02:53:02.300Z
Answers.LastActivityDate: 2017-08-19T02:53:02.300Z
Answers.UserDisplayName: Dave T
Body: <p>We are running CiviCRM 4.7.23 + Drupal 7.56.</p>
  
  <p>If we try and access one of our Drupal User Records via the CiviCRM Contact record (View Contact -> Actions -> User Record) we get a 404 "Page not found" error from Drupal.</p>
  
  <p>In trying to debug this, we've noticed that the URL generated by the "User Record" link in CiviCRM is like this:</p>
  
  <pre><code>http://oursite.org/user/XXXX&amp;cid=YYY
  </code></pre>
  
  <p>Where XXXX is the Drupal User ID and YYY is the CiviCRM Contact ID.  If I strip off the &amp;cid=YYY part from the URL, the link works and takes me to the correct User Record.</p>
  
  <p>So, is this a bug, or is our site misconfigured somehow?</p>
  
Tags: <drupal><user-account>
Title: Link to User record, via View Contact -> Actions -> User Record gives Page Not Found (404). Is this a bug?
ThreadText: # Link to User record, via View Contact -> Actions -> User Record gives Page Not Found (404). Is this a bug?
  
  (Asked by: username_0 on 2017-08-13)
  
  We are running CiviCRM 4.7.23 + Drupal 7.56.
  If we try and access one of our Drupal User Records via the CiviCRM Contact record (View Contact -> Actions -> User Record) we get a 404 "Page not found" error from Drupal.
  In trying to debug this, we've noticed that the URL generated by the "User Record" link in CiviCRM is like this:
  http://oursite.org/user/XXXX&cid=YYY
  
  Where XXXX is the Drupal User ID and YYY is the CiviCRM Contact ID.  If I strip off the &cid=YYY part from the URL, the link works and takes me to the correct User Record.
  So, is this a bug, or is our site misconfigured somehow?
  
  **Tags:** drupal, user-account
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2017-08-13. Score: 3
  
  I just tested on a site. Clicking the link as described above i get sent to
  
  user/2&cid=39941
  
  and that page shows.
  
  BUT
  
  if instead I just click on the Contact ID / User ID |
  39941 / 2 that sits just under Tags on the Contact Summary screen
  
  [![enter image description here](https://i.sstatic.net/BYTfH.png)](https://i.sstatic.net/BYTfH.png)
  
  I get sent to
  
  user/2 and that sounds like it might work in your set up
  
  Does your Summary Screen not show that? (ie I wonder why you are not using that rather than going via Actions which is an extra click)
  
  I can't explain why the link with &cid=YYY is failing for you
  
  > **Comments:**
  > **username_0**: Thanks for your answer, it does indeed present a useful workaround that we will likely use.  It also suggests that my problem is a misconfiguration rather than a bug.  I've given you a **useful** tick, but don't have enough reputation for that to stick.  I'll upgrade to **accept** if I don't get a better offer!  
  > **username_1**: I gave your question and comment a +1 to help get you more reputable ;-)  
  > **username_1**: and agree. save your 'accept' in case someone comes along and gives you an explanation about how your config might be messed up, as I can't immediately point to anything  
  > **username_2**: I have run into the same issue. I think username_0, you can rest assured that your configuration is correct. Every D7 site I have checked where /user/XXXX&cid=YYY results in a 404 page. If it were /user/XXXX?cid=YYY, it would be fine.   I suppose we will just have to wait for the 4.7.26 release.  
  
  ---
  
  ### Answer by username_3 on 2017-10-02. Score: 1
  
  I can confirm that on all sites I have access to that this is an issue. I poked around the code and can not figure out why the cid is being appended to the url
  I'm going to submit this as a bug
  
  > **Comments:**
  > **username_4**: Eric's JIRA issue is https://issues.civicrm.org/jira/browse/CRM-21247, fixed for 4.7.26 in https://github.com/civicrm/civicrm-core/pull/11057 . I've replicated the issue & verified the fix on a 4.7.23 site.  
  
  ---
  
  ### Answer by username_5 on 2017-08-19. Score: 0
  
  I just found this error in two client sites and testing in CiviHosting demo by selecting user record for demo contact has the same error. it looks like the url is missing a / before the &. When the missing / is added to the url it goes to the correct page.
  
  [![enter image description here](https://i.sstatic.net/3EhAd.jpg)](https://i.sstatic.net/3EhAd.jpg)
  
  > **Comments:**
  > **username_5**: Other facts - our client sites are running civi 4.7.22 (after upgrading from 4.7.14).  Civi Hosting is running 4.7.20 so it seems to have been introduced between 4.7.14 and 4.7.20.  
  > **username_5**: This AM, the same sites including CiviHosting demo work OK.   The url now is just https://civicrm.demo.civihosting.com/user/2 which does not include the CID info.  Any ideas on why the URL would change?  caching issues?  
  > **username_0**: Thanks Dave, my html is now a bit rusty, but I wouldn't have expected a "/" before an "&" as the latter is usually a parameter to the path, which doesn't usually terminate with a "/", see https://en.wikipedia.org/wiki/URL  
  > **username_0**: To test Dave's hypothesis about caching being a possible cause, I tried the following: 1. Drupal: flush all caches; 2. CiviCRM: Administer -> System Settings -> Cleanup Caches; 3. CiviCRM: Administer -> System Settings -> Reset Paths. None of these has fixed my problem, the same broken link results.  
  > **username_0**: Hmm, I obviously don't understand how markdown works on this site, can't get a numbered list to display properly, sorry!  
  > **username_5**: Further usage, it is not working.  Not sure if my comment about it working was based on access by clicking on the drupal user ID in the contact record.    Also, I think the extra / was the equivalent of stripping the &cid=YYY suggestion.   So, I don't think it is a configuration issue based on the number of sites including demo that have the issue.  
  
  ---
  
  