mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
feat: add prop to stop route selection being persisted in url param
This commit is contained in:
@@ -135,10 +135,12 @@ const props = withDefaults(
|
||||
projectId?: string
|
||||
downloadReason?: CdnDownloadReason
|
||||
useRouteHash?: boolean
|
||||
updateRouteSelection?: boolean
|
||||
}>(),
|
||||
{
|
||||
downloadReason: 'standalone',
|
||||
useRouteHash: true,
|
||||
updateRouteSelection: true,
|
||||
},
|
||||
)
|
||||
|
||||
@@ -305,6 +307,7 @@ function updateDownloadQuery({
|
||||
gameVersion: string | null
|
||||
platform: string | null
|
||||
}) {
|
||||
if (!props.updateRouteSelection) return
|
||||
navigateTo(
|
||||
{
|
||||
query: {
|
||||
|
||||
Reference in New Issue
Block a user