Hi Erick,
I made a change similar to this, but to take the language of the microsite 
instead of the LMS_ROOT_URL. But I think most of the same theory should 
apply. Basically you find how your email template is pulling in the 
LMS_ROOT_URL, and modify that slightly to use 
configuration_helpers_.get_value(). So you might end up with something that 
looks something like this: 
configuration_helpers.get_value('LMS_ROOT_URL', settings.LMS_ROOT_URL)

Which is saying "get my microsite override for LMS_ROOT_URL, and if you 
can't find it then fall back to my platform LMS_ROOT_URL"

Hopefully that helps a bit!
John


On Monday, May 20, 2019 at 4:27:49 PM UTC-4, Erick Raul Estrada Acosta 
wrote:
>
> I am trying to send emails, but I have many microsites, then the mail 
> links take the route of my home page and not the microsite from where it is 
> generated, I found that in the aws.py file it mentions the *LMS_ROOT_URL* 
> <https://gitlab.dlc.ntu.edu.tw/shawnli1109/edx-platform/blob/point-to-dlc/lms/envs/aws.py>
>  
> of which the links are composed In the *email templates*, try adding this 
> option in the custom settings of each microsite in the *lms.env.json* 
> file, but keep taking the data from the main page and not from the *microsite 
> configuration*.
>
> Any idea how I could solve this?
>
> *Thanks a lot.*
>

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to edx-code+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/64922ee0-853e-4e70-a679-8482a6104fc4%40googlegroups.com.

Reply via email to