Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2694536
D25453.1734787501.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
737 B
Referenced Files
None
Subscribers
None
D25453.1734787501.diff
View Options
diff --git a/src/applications/project/editor/PhabricatorProjectTransactionEditor.php b/src/applications/project/editor/PhabricatorProjectTransactionEditor.php
--- a/src/applications/project/editor/PhabricatorProjectTransactionEditor.php
+++ b/src/applications/project/editor/PhabricatorProjectTransactionEditor.php
@@ -295,6 +295,12 @@
}
public function removeSlugs(PhabricatorProject $project, array $slugs) {
+ // Do not remove the slug if it is the new primary slug to avoid a 404. If
+ // that's the case, drop it from the array - https://we.phorge.it/T15636
+ if (($key = array_search($project->getPrimarySlug(), $slugs)) !== false) {
+ unset($slugs[$key]);
+ }
+
if (!$slugs) {
return;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 13:25 (18 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1024301
Default Alt Text
D25453.1734787501.diff (737 B)
Attached To
Mode
D25453: Fix project page 404 after rename and removing new name from alias slugs
Attached
Detach File
Event Timeline
Log In to Comment