Answers.Body: <p>This may or may not be related, but there is an ongoing issue relating to when <code>/administrator</code> is included in the path.  See <a href="https://lab.civicrm.org/dev/joomla/issues/5" rel="nofollow noreferrer">https://lab.civicrm.org/dev/joomla/issues/5</a> for details.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-27T20:58:19.370Z
Answers.Text: It certainly looks promising. I was looking for where these URLs were being defined. I'd rather hard code the URL just for that one instance though. Changing a dynamic link like the ones explained in that thread you found could change dozens of URL constructions. On another note, it is also a CMS specific issue for those wondering. I tried it on Wordpress and the issue does not occur.  I'll check it out after the weekend. Thanks for the tip.
Answers.UserDisplayName: Kurt Leadley
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-27T09:38:51.103Z
Answers.LastActivityDate: 2019-09-27T09:38:51.103Z
Answers.UserDisplayName: Aidan
Body: <p>(Joomla 3.9.8)<br/>
  (Civi 5.14.1)</p>
  
  <p>When signed in as a Super User in CiviCRM, I am getting an error when trying to view the "Public View" of "Scheduled and Sent Messages" for Civi Mailings. </p>
  
  <p>The error message I get is:<br/>
  <code>You do not have permission to access this page.</code>
  <a href="https://i.sstatic.net/kjnSC.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/kjnSC.png" alt="https://i.sstatic.net/kjnSC.png"></a></p>
  
  <p>One thing I noticed is that my url loses 'administrator' when clicking "View Public View" and instead looks like this:<br/>
  <code>index.php?option=com_civicrm&amp;task=civicrm/mailing/view&amp;id=413&amp;reset=1</code></p>
  
  <p>If I manually remove index and replace it with administrator the url works:<br/>
  <code>administrator/?option=com_civicrm&amp;task=civicrm/mailing/view&amp;id=413&amp;reset=1</code></p>
  
  <p>I checked the Global Configuration in Joomla for <code>CiviMail: view public CiviMail content</code> and it is indeed allowed for a Super User, but it still does not work. The only way to get the 1st, Civi generated url to work is to set <code>CiviMail: view public CiviMail content</code> to enabled for all the public. I don't want that.</p>
  
  <p>So my idea was to go into Civi's core, find out where this url is being created and change the <code>index?</code> part of the url to <code>administrator</code>. I am not sure where to find this. Does anyone know where this url is being constructed? If there is a better way of doing this, I would like to know as well. </p>
  
Tags: <civimail><joomla><permissions>
Title: Can't view "Public View" of "Scheduled and Sent Messages" as a Super User admin in CiviCRM. Incorrect URL being constructed
ThreadText: # Can't view "Public View" of "Scheduled and Sent Messages" as a Super User admin in CiviCRM. Incorrect URL being constructed
  
  (Asked by: username_0 on 2019-09-25)
  
  (Joomla 3.9.8)  
  (Civi 5.14.1)
  
  When signed in as a Super User in CiviCRM, I am getting an error when trying to view the "Public View" of "Scheduled and Sent Messages" for Civi Mailings.
  
  The error message I get is:  
  `You do not have permission to access this page.`
  [![https://i.sstatic.net/kjnSC.png](https://i.sstatic.net/kjnSC.png)](https://i.sstatic.net/kjnSC.png)
  
  One thing I noticed is that my url loses 'administrator' when clicking "View Public View" and instead looks like this:  
  `index.php?option=com_civicrm&task=civicrm/mailing/view&id=413&reset=1`
  
  If I manually remove index and replace it with administrator the url works:  
  `administrator/?option=com_civicrm&task=civicrm/mailing/view&id=413&reset=1`
  
  I checked the Global Configuration in Joomla for `CiviMail: view public CiviMail content` and it is indeed allowed for a Super User, but it still does not work. The only way to get the 1st, Civi generated url to work is to set `CiviMail: view public CiviMail content` to enabled for all the public. I don't want that.
  
  So my idea was to go into Civi's core, find out where this url is being created and change the `index?` part of the url to `administrator`. I am not sure where to find this. Does anyone know where this url is being constructed? If there is a better way of doing this, I would like to know as well.
  
  **Tags:** civimail, joomla, permissions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-09-27. Score: 2
  
  This may or may not be related, but there is an ongoing issue relating to when `/administrator` is included in the path. See <https://lab.civicrm.org/dev/joomla/issues/5> for details.
  
  > **Comments:**
  > **username_0**: It certainly looks promising. I was looking for where these URLs were being defined. I'd rather hard code the URL just for that one instance though. Changing a dynamic link like the ones explained in that thread you found could change dozens of URL constructions. On another note, it is also a CMS specific issue for those wondering. I tried it on Wordpress and the issue does not occur.  I'll check it out after the weekend. Thanks for the tip.  
  
  ---
  
  