Ashraam
107
0
Servers

Problem with http and https

Posted 2 years ago by Ashraam

I everyone,

I'm working on my app on vagrant and it's working nicely, I push it on prod (with HTTPS url) and all my emails url doesn't work anymore.

Example

let's say my APP_URL in the .env is https://www.domain.com

all my links and assets in the mail are

url('test')
asset('images/test.png')

I grad the mails with mailtrap right now.

If I look to the source: the url is converted to http://www.domain.com/test the asset is converted to http://www.domain.com/images/test.png

If I copy paste the url or assets in my browser it doesn't work because https redirect like this url: http://www.domain.comtest asset: http://www.domain.comimages/test.png

It removes the first slash after the domain name...

How can I solve this problem ?

Thank you !

Please sign in or create an account to participate in this conversation.