fix: back to browse in app not working (#6087)

This commit is contained in:
Prospector
2026-05-12 22:22:27 -07:00
committed by GitHub
parent f6fa486dea
commit d87f93fdd5
2 changed files with 3 additions and 3 deletions

View File

@@ -303,7 +303,7 @@
"message": "This project is already installed"
},
"app.project.install-context.back-to-browse": {
"message": "Back to browse"
"message": "Back to discover"
},
"app.project.install-context.install-content-to-instance": {
"message": "Install content to instance"

View File

@@ -334,7 +334,7 @@ const { formatMessage } = useVIntl()
const messages = defineMessages({
backToBrowse: {
id: 'app.project.install-context.back-to-browse',
defaultMessage: 'Back to browse',
defaultMessage: 'Back to discover',
},
installContentToInstance: {
id: 'app.project.install-context.install-content-to-instance',
@@ -415,7 +415,7 @@ const projectGalleryHref = computed(() => buildProjectHref(`/project/${route.par
const projectBrowseBackUrl = computed(() => {
const browsePath = route.query.b
if (typeof browsePath === 'string' && browsePath.startsWith('/browse/')) return browsePath
const type = data.value?.project_type ? `${data.value.project_type}s` : 'mods'
const type = data.value?.project_type ? `${data.value.project_type}` : 'mod'
return `/browse/${type}`
})