fix: random 404s (#6138)

* fix: random 404s when navigating from user, org, or collection page to project

* more

* revert server

* clean names

* prepr
This commit is contained in:
Prospector
2026-05-19 11:11:48 -07:00
committed by GitHub
parent f106dc580f
commit 302b60d89c
45 changed files with 127 additions and 123 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ Example:
link: {
path: 'settings/description',
title: messages.editDescriptionTitle,
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-description',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-description',
},
}
```
+8 -7
View File
@@ -23,7 +23,7 @@ export const coreNags: Nag[] = [
id: 'nags.moderation.title',
defaultMessage: 'Visit moderation thread',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-moderation',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-moderation',
},
},
{
@@ -45,7 +45,7 @@ export const coreNags: Nag[] = [
id: 'nags.versions.title',
defaultMessage: 'Visit versions page',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-versions',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-versions',
},
},
{
@@ -67,7 +67,8 @@ export const coreNags: Nag[] = [
id: 'nags.settings.description.title',
defaultMessage: 'Visit description settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-description',
shouldShow: (context: NagContext) =>
context.currentRoute !== 'type-project-settings-description',
},
},
{
@@ -89,7 +90,7 @@ export const coreNags: Nag[] = [
id: 'nags.settings.title',
defaultMessage: 'Visit general settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings',
},
},
{
@@ -132,7 +133,7 @@ export const coreNags: Nag[] = [
id: 'nags.gallery.title',
defaultMessage: 'Visit gallery page',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-gallery',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-gallery',
},
},
{
@@ -158,7 +159,7 @@ export const coreNags: Nag[] = [
id: 'nags.gallery.title',
defaultMessage: 'Visit gallery page',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-gallery',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-gallery',
},
},
{
@@ -190,7 +191,7 @@ export const coreNags: Nag[] = [
id: 'nags.settings.license.title',
defaultMessage: 'Visit license settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-license',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-license',
},
},
]
@@ -146,7 +146,8 @@ export const descriptionNags: Nag[] = [
id: 'nags.edit-description.title',
defaultMessage: 'Edit description',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-description',
shouldShow: (context: NagContext) =>
context.currentRoute !== 'type-project-settings-description',
},
},
{
@@ -182,7 +183,8 @@ export const descriptionNags: Nag[] = [
id: 'nags.edit-description.title',
defaultMessage: 'Edit description',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-description',
shouldShow: (context: NagContext) =>
context.currentRoute !== 'type-project-settings-description',
},
},
{
@@ -217,7 +219,7 @@ export const descriptionNags: Nag[] = [
id: 'nags.edit-summary.title',
defaultMessage: 'Edit summary',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings',
},
},
{
@@ -255,7 +257,7 @@ export const descriptionNags: Nag[] = [
id: 'nags.edit-summary.title',
defaultMessage: 'Edit summary',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings',
},
},
{
@@ -280,7 +282,7 @@ export const descriptionNags: Nag[] = [
id: 'nags.edit-title.title',
defaultMessage: 'Edit title',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings',
},
},
{
@@ -313,7 +315,7 @@ export const descriptionNags: Nag[] = [
id: 'nags.edit-title.title',
defaultMessage: 'Edit title',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings',
},
},
{
@@ -339,7 +341,7 @@ export const descriptionNags: Nag[] = [
id: 'nags.edit-summary.title',
defaultMessage: 'Edit summary',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings',
},
},
{
@@ -365,7 +367,8 @@ export const descriptionNags: Nag[] = [
id: 'nags.edit-description.title',
defaultMessage: 'Edit description',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-description',
shouldShow: (context: NagContext) =>
context.currentRoute !== 'type-project-settings-description',
},
},
{
@@ -390,7 +393,8 @@ export const descriptionNags: Nag[] = [
id: 'nags.edit-description.title',
defaultMessage: 'Edit description',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-description',
shouldShow: (context: NagContext) =>
context.currentRoute !== 'type-project-settings-description',
},
},
]
+7 -7
View File
@@ -99,7 +99,7 @@ export const linksNags: Nag[] = [
id: 'nags.settings.links.title',
defaultMessage: 'Visit links settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-links',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-links',
},
},
{
@@ -126,7 +126,7 @@ export const linksNags: Nag[] = [
id: 'nags.settings.links.title',
defaultMessage: 'Visit links settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-links',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-links',
},
},
{
@@ -150,7 +150,7 @@ export const linksNags: Nag[] = [
id: 'nags.settings.links.title',
defaultMessage: 'Visit links settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-links',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-links',
},
},
{
@@ -178,7 +178,7 @@ export const linksNags: Nag[] = [
id: 'nags.visit-links-settings.title',
defaultMessage: 'Visit links settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-links',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-links',
},
},
{
@@ -205,7 +205,7 @@ export const linksNags: Nag[] = [
id: 'nags.visit-links-settings.title',
defaultMessage: 'Visit links settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-links',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-links',
},
},
{
@@ -299,7 +299,7 @@ export const linksNags: Nag[] = [
id: 'nags.edit-license.title',
defaultMessage: 'Edit license',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings',
},
},
{
@@ -373,7 +373,7 @@ export const linksNags: Nag[] = [
id: 'nags.visit-links-settings.title',
defaultMessage: 'Visit links settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-links',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-links',
},
},
]
@@ -22,7 +22,7 @@ export const serverProjectsNags: Nag[] = [
id: 'nags.server.title',
defaultMessage: 'Visit server settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-server',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-server',
},
},
{
@@ -45,7 +45,7 @@ export const serverProjectsNags: Nag[] = [
id: 'nags.server.title',
defaultMessage: 'Visit server settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-server',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-server',
},
},
{
@@ -68,7 +68,7 @@ export const serverProjectsNags: Nag[] = [
id: 'nags.server.title',
defaultMessage: 'Visit server settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-server',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-server',
},
},
{
@@ -97,7 +97,7 @@ export const serverProjectsNags: Nag[] = [
id: 'nags.server.title',
defaultMessage: 'Visit server settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-server',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-server',
},
},
]
+5 -5
View File
@@ -44,7 +44,7 @@ export const tagsNags: Nag[] = [
id: 'nags.settings.tags.title',
defaultMessage: 'Visit tag settings',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-tags',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-tags',
},
},
{
@@ -84,7 +84,7 @@ export const tagsNags: Nag[] = [
id: 'nags.edit-tags.title',
defaultMessage: 'Edit tags',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-tags',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-tags',
},
},
{
@@ -123,7 +123,7 @@ export const tagsNags: Nag[] = [
id: 'nags.edit-tags.title',
defaultMessage: 'Edit tags',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-tags',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-tags',
},
},
{
@@ -172,7 +172,7 @@ export const tagsNags: Nag[] = [
id: 'nags.edit-tags.title',
defaultMessage: 'Edit tags',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-tags',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-tags',
},
},
{
@@ -219,7 +219,7 @@ export const tagsNags: Nag[] = [
id: 'nags.edit-tags.title',
defaultMessage: 'Edit tags',
}),
shouldShow: (context: NagContext) => context.currentRoute !== 'type-id-settings-tags',
shouldShow: (context: NagContext) => context.currentRoute !== 'type-project-settings-tags',
},
},
]