Body: <p>Drupal 9.5.10, CiviCRM 5.61.4.</p>
  <p>Anonymous user can access
  domain.tld/civicrm/contribute/transact?reset=1&amp;id=20</p>
  <p>but not its alias domain.tld/subs created via domain.tld/admin/config/search/path
  Drupal Watchdog gives the follow:</p>
  <pre><code>Path: /subs. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException:
  in Drupal\civicrm\Controller\CivicrmController-&gt;main() 
  (line 86 of /var/www/html/drupal/web/modules/contrib/civicrm/src/Controller/CivicrmController.php).
  </code></pre>
  <p>Doesn't look like civicrm permission issues since domain.tld/civicrm/contribute/transact?reset=1&amp;id=20 is accessible. What would it be?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-15T19:34:38.097Z
Comments.Text: If there's a stack trace that might help a bit but it's probably coming from CRM/Core/Invoke where it doesn't think it corresponds to an allowed menu item. Instead of an alias, could you try a redirect, so that drupal redirects it to the real url?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-16T16:16:42.590Z
Comments.Text: @Demerit  Unfortunately no backtrace has been given by Drupal, only watchdog message. Thank you for Redirect pointer, let's say this is a way to go for modern Drupal setups.
Comments.UserDisplayName: yurg
Tags: <drupal><drupal-9>
Title: Drupal 9 contribution page url alias access denied
ThreadText: # Drupal 9 contribution page url alias access denied
  
  (Asked by: username_0 on 2023-08-15)
  
  Drupal 9.5.10, CiviCRM 5.61.4.
  
  Anonymous user can access
  domain.tld/civicrm/contribute/transact?reset=1&id=20
  
  but not its alias domain.tld/subs created via domain.tld/admin/config/search/path
  Drupal Watchdog gives the follow:
  
  ```
  Path: /subs. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException:
  in Drupal\civicrm\Controller\CivicrmController->main() 
  (line 86 of /var/www/html/drupal/web/modules/contrib/civicrm/src/Controller/CivicrmController.php).
  
  ```
  
  Doesn't look like civicrm permission issues since domain.tld/civicrm/contribute/transact?reset=1&id=20 is accessible. What would it be?
  
  **Tags:** drupal, drupal-9
  
  > **Comments:**
  > **username_1**: If there's a stack trace that might help a bit but it's probably coming from CRM/Core/Invoke where it doesn't think it corresponds to an allowed menu item. Instead of an alias, could you try a redirect, so that drupal redirects it to the real url?  
  > **username_0**: @username_1  Unfortunately no backtrace has been given by Drupal, only watchdog message. Thank you for Redirect pointer, let's say this is a way to go for modern Drupal setups.  
  
  ---
  
  ## 0 answers
  
  