Skip to content

Problem: slugs with non-ascii chars are ill-formed #1921

Open
@miceno

Description

@miceno

Current Behavior

Steps to reproduce the behavior

  1. Create a taxonomy term with the following text "España está en Europa".
  2. The slug will be "espa-na-est-a-en-europa".

Expected Behavior

  1. Create a taxonomy term with the following text "España".
  2. The slug will be "espana-esta-en-europa".

Possible Solution

As of now, the transliteration is using iconv module, that converts the "ñ" to "~n". In fact it is converting special chars like á to 'a and thus, it converts ' to -.

Using a php module like the ´intl` module, we can convert it avoiding the additional char.

intl module is a module commonly available on Linux distributions.

Context and Notes

I can prepare a PR myself about this issue. I have already tested it on my local against the latest qa branch.

Version used

AtoM 2.9.0 - 193

Operating System and version

Docker compose provided from github

Default installation culture

en, es, ca

PHP version

php 7.4

Contact details

[email protected]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugA flaw in the code that causes the software to produce an incorrect or unexpected result.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions