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

Loading…
Cancel
Save