HomePhorge

Fix project page 404 after rename and removing new name from alias slugs

Description

Fix project page 404 after rename and removing new name from alias slugs

Summary:
When renaming a project to a slug already listed under Additional hashtags and explicitly also removing that to-become slug, accessing the project via the URL /tag/projectname/ returned a 404 until someone added the current project name explicitly under "Additional hashtags" again.

In that case, do not remove the alternative hashtag to avoid the 404.

Closes T15636

Test Plan: See steps in https://we.phorge.it/T15636

Reviewers: O1 Blessed Committers, speck

Reviewed By: O1 Blessed Committers, speck

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15636

Differential Revision: https://we.phorge.it/D25453

Details

Provenance
Andre KlapperAuthored on Oct 28 2023, 11:23 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP222a6fea0a1d: Fix PHP 8.1 "strlen(null)" exception on Diffusion repo URIs page after repo…
Branches
Unknown
Tags
Unknown

Event Timeline