Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NoReverseMatch error for tagged_page_list view #1141

Closed
wants to merge 1 commit into from

Conversation

brylie
Copy link
Member

@brylie brylie commented Dec 11, 2024

Fixes #1139

Update cleanForSlug function to convert Unicode characters to ASCII using the unidecode library.

  • contact/static/js/contact/person_url_slug.js

    • Import the unidecode library from a CDN.
    • Update the cleanForSlug function to convert Unicode characters to ASCII before processing the text for slug generation.
  • contact/tests.py

    • Add tests for the cleanForSlug function to verify Unicode to ASCII conversion.
    • Add tests for the generateAutoslug function to ensure correct slug generation.

For more details, open the Copilot Workspace session.

Fixes #1139

Update `cleanForSlug` function to convert Unicode characters to ASCII using the `unidecode` library.

* **contact/static/js/contact/person_url_slug.js**
  - Import the `unidecode` library from a CDN.
  - Update the `cleanForSlug` function to convert Unicode characters to ASCII before processing the text for slug generation.

* **contact/tests.py**
  - Add tests for the `cleanForSlug` function to verify Unicode to ASCII conversion.
  - Add tests for the `generateAutoslug` function to ensure correct slug generation.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/WesternFriend/westernfriend.org/issues/1139?shareId=XXXX-XXXX-XXXX-XXXX).
@brylie brylie closed this Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant