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

srcset problem #17988

Closed
hotthemes opened this issue Sep 19, 2017 · 2 comments
Closed

srcset problem #17988

hotthemes opened this issue Sep 19, 2017 · 2 comments

Comments

@hotthemes
Copy link

hotthemes commented Sep 19, 2017

Steps to reproduce the issue

$template_path = $this->baseurl.'/templates/'.$this->template; <img src="<?php echo $template_path."/images/image.png" srcset="<?php $template_path."/images/image@2x.png 2x" alt="">

Expected result

<img src="/joomla/templates/my_template/images/image.png" srcset="/joomla/templates/my_template/images/image@2x.png 2x" alt="">

Actual result (wrong path for srcset)

<img src="/joomla/templates/my_template/images/image.png" srcset="//joomla/joomla/templates/my_template/images/image@2x.png 2x" alt="">

System information (as much as possible)

Attachedsysteminfo-2017-09-19T18-07-30+02-00.txt

@mbabker
Copy link
Contributor

mbabker commented Sep 19, 2017

Duplicate of #17978

@mbabker mbabker marked this as a duplicate of #17978 Sep 19, 2017
@mbabker mbabker closed this as completed Sep 19, 2017
@hotthemes
Copy link
Author

I don't know how to add code here (!) but HTML output for srcset has Joomla base url included twice.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17988.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants