-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.0] correct URL for non-admin users with the email template: Content: New Article Submitted #46519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 6.0-dev
Are you sure you want to change the base?
Conversation
|
I have tested this item ✅ successfully on a57b517 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46519. |
|
even though the url is a site url (not admin) doesnt mean that the recipient of the email will be able to access the article. You are only checking to see if the recipient can access the admin. You are not checking if they can access the article |
|
Check added |
|
@Kostelano would you be able to retest now @alikon has added a new check please. |
|
I have tested this item ✅ successfully on e4170af This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46519. |
Thank you, appreciate your time to retest |
|
Sorry @alikon, I seem to not be receiving the wanted results ;( After PR is applied, I still get this URL /_j6b2n/administrator/index.php?option=com_content&view=articles&filter[search]=id:23. ;( Shows the front end user is logged in: Shows the test user is of type Publisher (same results with Author, or Author + Publisher ) Shows the email result after creating email as Test User of type Publisher with Patch applied ;( |
|
@exlemor if i understand correctly the user that submit the article is (Author, or Author + Publisher) but the user for who you show the email (Emmanuel) have core.login privileges if that is correct, cause user (Emmanuel can see the submitted article from backend) then the link is correct that shows you the admin link |
Hi @alikon, I should have added the other graphic sorry, for the Author (or Publisher) user, there is NO email that arrives to the user@domain.com email account (I even checked server email logs) :/ |



Pull Request for Issue #46458 .
Summary of Changes
Change URL to site for non-admin users.
Testing Instructions
Open the Content: New Article Submitted email template and add the URL tag somewhere (it's not used by default).
Create a new user with a working email and assign them the Author/Publisher group, etc. (so they can create an article in the frontend but won't have access to the admin panel).
log in frontend like a superuser
and submit an article
Actual result BEFORE applying this Pull Request
wrong url https://SITE/administrator/index.php?option=com_content&view=articles&filter[search]=id:17 for non superuser
Expected result AFTER applying this Pull Request
correct url for non superuser
https://SITE/index.php?option=com_content&view=articles&id=nnn
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed