adobe / adobe/aem-core-cif-components

Searchbar is not using the resource resolver to return shortened urls

Open
#976 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
109
Forks
78
Avg merge
4d 18h
Merged PRs (30d)
4

Description

### 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

Contributor guide

Open the contributing guide

Research direction

Start with the Searchbar model entry point named in the reproduction, com.adobe.cq.commerce.core.components.models.searchbar.Searchbar, and trace how searchResultsPageUrl is produced when resource resolver mapping is enabled. Reproduce the issue with a page containing searchResultsPageUrl; done means the returned URL no longer includes /content/website.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.