Skip to content

Searchbar is not using the resource resolver to return shortened urls #976

@mbouxsein24

Description

@mbouxsein24

Expected Behaviour

Apply resource mapping on the searchResultsPageUrl

Actual Behaviour

  • /content/website is not removed from the searchResultsPageUrl

Reproduce Scenario (including but not limited to)

data-sly-use.searchbar="${'com.adobe.cq.commerce.core.components.models.searchbar.Searchbar'}"
data-search-result-page-url="${searchbar.searchResultsPageUrl}"

Steps to Reproduce

  1. Add the searchResultsPageUrl to a page
  2. Enable resource resolver for the environment

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions