The getInboundPath should only work for the request path

Created on 17 February 2023, over 1 year ago
Updated 25 September 2023, 9 months ago

Problem/Motivation

When having a view with a translation for a facet, the module replaces to much.

Steps to reproduce

  1. Have 2 languages enabled for example EN (default) and NL
  2. Have facets_pretty_paths enabled
  3. Have a node type "news"
  4. Create some nodes from the news type
  5. Add a search view with path /search and show all nodes on the view
  6. Translate the search view
  7. Add a facet for the node type to the search view
  8. Create a news view with path /news
  9. Translate the news view
  10. Go to the search view and filter on news
  11. The path to filter for news is not correct as the path is replaced to much, for example /nl/search/type/nieuws instead of /nl/zoeken/type/news

Proposed resolution

Check that the request path info is the same as the path that is processed in the getInboundPath method.

Remaining tasks

Create and review patch

User interface changes

-

API changes

-

Data model changes

-

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium tim-diels Belgium πŸ‡§πŸ‡ͺ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024