Skip to content
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

Absolute Image URL not converted #52

Open
setianke opened this issue Mar 13, 2020 · 1 comment
Open

Absolute Image URL not converted #52

setianke opened this issue Mar 13, 2020 · 1 comment

Comments

@setianke
Copy link

setianke commented Mar 13, 2020

Hello,

I am currently using OctoberCMS on a subdirectory and when passing a src via twig variable like

<img src="{{ img.path }}" />

and the HTML output for the image path looks like:

<img src="domain.com/subdir/storage/app/media/odisha-ration-card-1.png" />

or

<img src="domain.com/storage/app/media/odisha-ration-card-1.png" />

The plugin is not adding the srcset attributes - any chance to make it work for absolute paths or how to pass only the relative path?

I have set the correct app.url in my app config

Thank you in advance for your help - appreciated

@tobias-kuendig
Copy link
Member

There is no http:// in your url? If so, make sure you add it to your app.path config setting. Without the https:// it won't be able to parse the URL correctly.

@RomainMazB RomainMazB mentioned this issue Jun 4, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants