You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered two related issues with the URL handling in the email button links.
Issue 1:
When editing the URL of the buttons in the email settings (Sensei LMS > Settings > Emails), if you use placeholders such as [course:url], the URL field automatically prepends "http://" to the placeholder. For example, after editing, the URL field shows: http://[course:url].
Issue 2:
When the URL of the button has been modified as described above, the generated button URL in the sent emails is incorrect. Instead of resolving to the correct URL, it appears as: http://https//domain.com/course/course-name
There are two main problems here:
The http:// prefix is unnecessarily added.
The URL itself is malformed as the colon (":") is missing between https and //.
This results in broken links within the emails sent to users.
Steps to Reproduce:
Go to Sensei LMS > Settings > Emails.
Edit the button URL (with pencil icon) and use a placeholder such as [course:url].
Save the settings.
Trigger an email that includes the button.
Observe the URL in the email.
Expected Result:
The button URL should correctly resolve the placeholder and not prepend "http://".
Actual Result:
The button URL is malformed and prepended with "http://", resulting in broken links.
@amroland This one will ship in today's 4.24.3 release. Note that the protocol will still appear in the editor, but will be stripped out at email send time.
I have encountered two related issues with the URL handling in the email button links.
Issue 1:
When editing the URL of the buttons in the email settings (Sensei LMS > Settings > Emails), if you use placeholders such as
[course:url]
, the URL field automatically prepends "http://" to the placeholder. For example, after editing, the URL field shows:http://[course:url]
.Issue 2:
When the URL of the button has been modified as described above, the generated button URL in the sent emails is incorrect. Instead of resolving to the correct URL, it appears as:
http://https//domain.com/course/course-name
There are two main problems here:
http://
prefix is unnecessarily added.https
and//
.This results in broken links within the emails sent to users.
Steps to Reproduce:
[course:url]
.Expected Result:
The button URL should correctly resolve the placeholder and not prepend "http://".
Actual Result:
The button URL is malformed and prepended with "http://", resulting in broken links.
PHP / WordPress / Sensei LMS version
Video
https://www.loom.com/share/3c95e56dda7a44908024d6d728618418?sid=4a7ec8ed-d823-40cf-911e-aff470760842
The text was updated successfully, but these errors were encountered: