Segments input text field is not visible

Created on 6 February 2023, over 1 year ago
Updated 13 February 2023, over 1 year 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.69.0 2024