Segments input text field is not visible

Created on 6 February 2023, almost 2 years ago
Updated 13 February 2023, almost 2 years ago

Problem/Motivation

The "Segments" input text field is not always visible even if "Provide a static url segment as the prefix to the alias?" is checked.

Steps to reproduce

  1. Create a view
  2. Add a contextual filter
  3. Check "Specify validation criteria"
  4. Select the validator "Entity ID from URL path alias"
  5. Check "Provide a static url segment as the prefix to the alias?"
  6. The "Segments" input text field is not visible

Note that we have views where it works correctly and there are views where does not. It seems it depends on some settings, like the contextual filter type or the relationship.
In the code the following condition is used:
:input[name="options[argument_default][views_url_path][provide_static_segments]"]

In the inspector:
options[validate][options][views_url_path][provide_static_segments]
If I use this condition then displaying/hiding the by the checkbox works correctly for all the views.

Proposed resolution

Change the form states condition to work correctly in every case.

🐛 Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

🇭🇺Hungary peter_serfozo

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

Comments & Activities

Production build 0.71.5 2024