Skip to content

Handle URL Path Creation with the same formula as the Library Website.  #362

@kevinreiss

Description

@kevinreiss

User story

As a user I would like links the all search produces to the Library Drupal site to be consistent with the format used for creating "friendly urls" in the Drupal site configuration.

Acceptance criteria

  • URL Creation uses the Library Website for handling punctuation, special characters, and stop words. See below
  • I can successfully use this feature with Voice Over in Safari.
  • I have checked this feature using one of the following browser extensions and confirmed that it does not add any level A or level AA issues:
    • axe dev tools
    • Lighthouse
    • Wave

Concrete example

WDS shared the configuration file for Drupal's pathauto module that manages URL creation in the Library website.

punctuation: # Only hyphens are preserved. 
  double_quotes: 0
  quotes: 0
  backtick: 0
  comma: 0
  period: 0
  hyphen: 1
  underscore: 0
  colon: 0
  semicolon: 0
  pipe: 0
  left_curly: 0
  left_square: 0
  right_curly: 0
  right_square: 0
  plus: 0
  equal: 0
  asterisk: 0
  ampersand: 0
  percent: 0
  caret: 0
  dollar: 0
  hash: 0
  at: 0
  exclamation: 0
  tilde: 0
  left_parenthesis: 0
  right_parenthesis: 0
  question_mark: 0
  less_than: 0
  greater_than: 0
  slash: 0
  back_slash: 0
verbose: false
separator: '-'
max_length: 100 #paths will be truncated after 100 characters. 
max_component_length: 100
transliterate: false
reduce_ascii: false
case: true
ignore_words: 'a, an, as, at, before, but, by, for, from, is, in, into, like, of, off, on, onto, per, since, than, the, this, that, to, up, via, with'

Implementation notes, if any

This issue came to light when processing staff members who have the apostrophe character in their name. See #360.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions