laravel-seo icon indicating copy to clipboard operation
laravel-seo copied to clipboard

How to use absolute path to images in seo?

Open rushi7997 opened this issue 2 years ago • 1 comments

Hello, we are using Vapor to host our application, and it does not use the relative path to the public folder instead, it uses an absolute path which we can get using asset() helper inside the application.

How can I use the absolute path for the images of the products.?

rushi7997 avatar Aug 08 '22 16:08 rushi7997

I've no personal experience with Vapor, but is this the default in Vapor to use the asset() helper instead of the public_path()?

Perhaps we could switch public_path() with asset(), but I'm not 100% sure if that would have complications..

ralphjsmit avatar Aug 08 '22 20:08 ralphjsmit

Closing this issue was solved by adding the full path to the image. @ralphjsmit Thanks for the package

rushi7997 avatar Oct 04 '22 19:10 rushi7997

Awesome!

ralphjsmit avatar Oct 05 '22 10:10 ralphjsmit