Answers.Body: <p>Nice post title!</p>
  <p>You could try civicrm/menu/rebuild?reset=1</p>
  <p>If that doesn't work, a first step might be check if they are stored in civicrm_navigation with the underscore, or whether something is translating them on the fly.</p>
  <p>Also check if there is a custom php dir set at admin - system settings - directories and see if there are any overrides in that folder.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-15T21:10:33.803Z
Answers.Text: Thank you for your input! Unfortunately few menu rebuilds made  no difference and there is no custom_php/custom_tpl folders. civicrm_navigation items look legit: all ampersands and question marks are in place. Interesting enough, not all links are affected. For instance, Financial Types  /civicrm/admin/financial/financialType?reset=1 is fine but the next one, Financial Accounts, has been "cleared" like this: /civicrm/admin/financial/financialAccount_reset_1
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-15T21:37:10.333Z
Answers.Text: Hmm. That is really odd. Any difference between whether the link is absolute vs relative? i.e. is it only replacing relative ones? Any weird in code in drupal settings.php?
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-15T22:50:32.210Z
Answers.Text: all links in ciivicrm_navigation table are relatiave and settings.php is vanilla ( except of db connection string )
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-15T16:04:00.903Z
Answers.LastActivityDate: 2022-07-15T16:04:00.903Z
Answers.UserDisplayName: Demerit
Body: <p>Drupal 7.9, CiviCRM 5.51 ( recently partially updated from v.4.7 ).
  Something overrides CiviCRM URLs in the menu:
  instead of <strong>&amp;contribute?reset=1</strong> it comes as <em><strong>contribute_reset_1</strong></em>
  Drupal  <strong>.htaccess</strong> file has no alterations, nor there are any custom module or custom theme function. Vanilla civicrm.settings.php. There is another civicrm setup on the same server  which works as it should. So there is a big chance something has been rotten during the upgrade but it's unclear where to start looking. Any advice please!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-18T16:26:47.763Z
Comments.Text: There's not much overlap in php compatibility between those two versions of civicrm, how did you deal with that?
Comments.UserDisplayName: Alan Dixon
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-18T22:07:35.157Z
Comments.Text: @AlanDixon Well, the work is in progress, so to say. A few missing DB tables here and there. DB triggers broken. Bunch of Integrity constraint violation. Menu is not working. Still, I hope to get there before the xmas :-)
Comments.UserDisplayName: yurg
Tags: <drupal><upgrade><redirect>
Title: Clean URLs are a little bit too clean
ThreadText: # Clean URLs are a little bit too clean
  
  (Asked by: username_0 on 2022-07-15)
  
  Drupal 7.9, CiviCRM 5.51 ( recently partially updated from v.4.7 ).
  Something overrides CiviCRM URLs in the menu:
  instead of **&contribute?reset=1** it comes as ***contribute\_reset\_1***
  Drupal **.htaccess** file has no alterations, nor there are any custom module or custom theme function. Vanilla civicrm.settings.php. There is another civicrm setup on the same server which works as it should. So there is a big chance something has been rotten during the upgrade but it's unclear where to start looking. Any advice please!
  
  **Tags:** drupal, upgrade, redirect
  
  > **Comments:**
  > **username_1**: There's not much overlap in php compatibility between those two versions of civicrm, how did you deal with that?  
  > **username_0**: @AlanDixon Well, the work is in progress, so to say. A few missing DB tables here and there. DB triggers broken. Bunch of Integrity constraint violation. Menu is not working. Still, I hope to get there before the xmas :-)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-07-15. Score: 1
  
  Nice post title!
  
  You could try civicrm/menu/rebuild?reset=1
  
  If that doesn't work, a first step might be check if they are stored in civicrm\_navigation with the underscore, or whether something is translating them on the fly.
  
  Also check if there is a custom php dir set at admin - system settings - directories and see if there are any overrides in that folder.
  
  > **Comments:**
  > **username_0**: Thank you for your input! Unfortunately few menu rebuilds made  no difference and there is no custom_php/custom_tpl folders. civicrm_navigation items look legit: all ampersands and question marks are in place. Interesting enough, not all links are affected. For instance, Financial Types  /civicrm/admin/financial/financialType?reset=1 is fine but the next one, Financial Accounts, has been "cleared" like this: /civicrm/admin/financial/financialAccount_reset_1  
  > **username_2**: Hmm. That is really odd. Any difference between whether the link is absolute vs relative? i.e. is it only replacing relative ones? Any weird in code in drupal settings.php?  
  > **username_0**: all links in ciivicrm_navigation table are relatiave and settings.php is vanilla ( except of db connection string )  
  
  ---
  
  