add sign in redirect path (#5746)

This commit is contained in:
Prospector
2026-04-04 13:33:09 -07:00
committed by GitHub
parent 54c45ac9f3
commit c4b3c6e8d6
9 changed files with 55 additions and 17 deletions

View File

@@ -1,11 +1,12 @@
const startReport = (type: string, id: string) => {
export const getReportPath = (type: string, id: string) => {
const prefill = new URLSearchParams()
// type
prefill.set('item', type)
prefill.set('itemID', id)
return '/report?' + prefill.toString()
}
navigateTo('/report?' + prefill.toString())
const startReport = (type: string, id: string) => {
navigateTo(getReportPath(type, id))
}
export const reportProject = (id: string) => {