Skip to content

Commit

Permalink
画像内のスラッシュ重複の削除
Browse files Browse the repository at this point in the history
  • Loading branch information
h.matsuo committed Apr 8, 2021
1 parent 7d60e98 commit c011049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eccube/Resource/template/default/Product/detail.twig
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ file that was distributed with this source code.
"name": "{{ Product.name }}",
"image": [
{% for img in Product.ProductImage %}
"{{ url('homepage') }}{{ asset(img, 'save_image') }}" {% if not loop.last %},{% endif %}
"{{ app.request.schemeAndHttpHost }}{{ asset(img, 'save_image') }}"{% if not loop.last %},{% endif %}
{% else %}
"{{ url('homepage') }}{{ asset(no_image_product, 'save_image') }}"
"{{ app.request.schemeAndHttpHost }}{{ asset(no_image_product, 'save_image') }}"
{% endfor %}
],
"description": "{{ Product.description_list | default(Product.description_detail) | striptags | replace({'\n': '', '\r': ''}) }}",
Expand Down

0 comments on commit c011049

Please sign in to comment.