Answers.Body: <p>Try using a question mark instead of an ampersand:</p>
  
  <pre><code>'url' =&gt; 'civicrm/profile?gid=20'
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-06T06:55:08.273Z
Answers.Text: This is happening just in the menu system. It's supposed to be **'...&reset=1'**  I've tried to rebuild the menu several times, do upgrades, etc. Can't tell where this is being set. Many menu are showing DB syntax errors because of this, too. Please advise.
Answers.UserDisplayName: BruceW
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-02T00:07:18.300Z
Answers.LastActivityDate: 2016-02-02T00:07:18.300Z
Answers.UserDisplayName: Coleman
Body: <p>I need to use the navigation menu hook to add a URL with arguments. I can't figure out why </p>
  
  <pre><code>'url' =&gt; 'civicrm/profile&amp;gid=20'
  </code></pre>
  
  <p>gets converted to </p>
  
  <pre><code> civicrm/profile_gid_20
  </code></pre>
  
  <p>by the time the menu renders. I've tried using </p>
  
  <pre><code> 'url' =&gt; 'civicrm/profile&amp;amp;gid=20'
  </code></pre>
  
  <p>instead, but that doesn't help.</p>
  
Tags: <menu><urls>
Title: Why does profile&gid= get converted to profile_gid_ to in the navigation menu?
ThreadText: # Why does profile&gid= get converted to profile_gid_ to in the navigation menu?
  
  (Asked by: username_0 on 2016-01-31)
  
  I need to use the navigation menu hook to add a URL with arguments. I can't figure out why 
  'url' => 'civicrm/profile&gid=20'
  
  gets converted to 
   civicrm/profile_gid_20
  
  by the time the menu renders. I've tried using 
   'url' => 'civicrm/profile&gid=20'
  
  instead, but that doesn't help.
  
  **Tags:** menu, urls
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-02-02. Score: 1 | Accepted answer
  
  Try using a question mark instead of an ampersand:
  'url' => 'civicrm/profile?gid=20'
  
  > **Comments:**
  > **username_2**: This is happening just in the menu system. It's supposed to be **'...&reset=1'**  I've tried to rebuild the menu several times, do upgrades, etc. Can't tell where this is being set. Many menu are showing DB syntax errors because of this, too. Please advise.  
  
  ---
  
  