craftcms / craftcms/cms

Slug stays the same after trying to be changed

Open
#9,888 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

When we're trying to change the slug of an entry, it sometimes stays the same after the save is complete (which takes quite a long time by the way). It doesn't happen all the time and mostly randomly, but in the case when it happens, even multiple changes & saves can't seem to change the slug.

Steps to reproduce
  1. Change the slug on a entry
  2. Save the entry
  3. Slug stays the same (even though it should have changed)
Additional info
  • Craft version: 3.7.13
  • PHP version: 7.4
  • Database driver & version: MariaDB 10.3.29

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the slug change with Craft 3.7.13, PHP 7.4, and MariaDB 10.3.29, following the listed save steps and checking whether the long save completes without changing the slug. Done means a changed slug persists reliably after saving, including across repeated attempts.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb, php
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.