fix: back to browse in app not working (#6087)
This commit is contained in:
@@ -303,7 +303,7 @@
|
|||||||
"message": "This project is already installed"
|
"message": "This project is already installed"
|
||||||
},
|
},
|
||||||
"app.project.install-context.back-to-browse": {
|
"app.project.install-context.back-to-browse": {
|
||||||
"message": "Back to browse"
|
"message": "Back to discover"
|
||||||
},
|
},
|
||||||
"app.project.install-context.install-content-to-instance": {
|
"app.project.install-context.install-content-to-instance": {
|
||||||
"message": "Install content to instance"
|
"message": "Install content to instance"
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ const { formatMessage } = useVIntl()
|
|||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
backToBrowse: {
|
backToBrowse: {
|
||||||
id: 'app.project.install-context.back-to-browse',
|
id: 'app.project.install-context.back-to-browse',
|
||||||
defaultMessage: 'Back to browse',
|
defaultMessage: 'Back to discover',
|
||||||
},
|
},
|
||||||
installContentToInstance: {
|
installContentToInstance: {
|
||||||
id: 'app.project.install-context.install-content-to-instance',
|
id: 'app.project.install-context.install-content-to-instance',
|
||||||
@@ -415,7 +415,7 @@ const projectGalleryHref = computed(() => buildProjectHref(`/project/${route.par
|
|||||||
const projectBrowseBackUrl = computed(() => {
|
const projectBrowseBackUrl = computed(() => {
|
||||||
const browsePath = route.query.b
|
const browsePath = route.query.b
|
||||||
if (typeof browsePath === 'string' && browsePath.startsWith('/browse/')) return browsePath
|
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}`
|
return `/browse/${type}`
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user