Browse Source

fix(compose): redirect after new issue

as it was using the previous url scheme
master
DanConwayDev 2 years ago
parent
commit
d9c3322544
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 3
      src/lib/wrappers/ComposeIssue.svelte

3
src/lib/wrappers/ComposeIssue.svelte

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
import { getUserRelays, logged_in_user, login } from '$lib/stores/users'
import type { RepoEvent } from '$lib/components/repo/type'
import { goto } from '$app/navigation'
import { nip19 } from 'nostr-tools'
export let repo_event: RepoEvent
@ -63,7 +64,7 @@ @@ -63,7 +64,7 @@
submitting = false
submitted = true
setTimeout(() => {
goto(`/r/${repo_event.identifier}/issues/${event.id}`)
goto(`/r/${repo_event.naddr}/issues/${nip19.noteEncode(event.id)}`)
}, 2000)
} catch {}
}

Loading…
Cancel
Save