Skip to content

Method getUrl in Magento\Catalog\Model\Product\Attribute\Frontend returns image url with double slash #13497

Closed
@igortregub

Description

@igortregub

Preconditions

  1. Magento 2.2.2

Steps to reproduce

  1. Try to get product image via method getUrl from class Magento\Catalog\Model\Product\Attribute\Frontend

Expected result

  1. returns image url without double slash

Actual result

  1. will be returned image with double slash
    screen shot 2018-02-05 at 12 37 04 pm 2018-02-05 13-25-55

I think it happens because images have in method getUrl variable $image image path starts from slash.
I here is sample how issue could be fixed: #13498

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions