File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
src/routes/[pid=pid]/[org]/[repo]/[id=number] Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 25
25
import { MediaQuery , SvelteMap } from " svelte/reactivity" ;
26
26
import { scrollY } from " svelte/reactivity/window" ;
27
27
import { browser } from " $app/environment" ;
28
+ import { resolve } from " $app/paths" ;
28
29
import { navigating , page } from " $app/state" ;
29
30
import {
30
31
ArrowUpRight ,
447
448
This pull request was released in
448
449
<Button
449
450
variant =" link"
450
- href ="/package/ {tagName }# {tagVersion }"
451
+ href ={resolve (" /package/[...package]" , {
452
+ package: tagName
453
+ }) + ` #${tagVersion } ` }
451
454
class =" h-auto p-0 text-green-500"
452
455
>
453
456
{tagName }
666
669
<div class =" flex flex-wrap justify-end gap-4" >
667
670
{#each linkedEntities as closingIssue (closingIssue .number )}
668
671
<Button
669
- href ="/ {metadata .type === ' pull' ? ' issues' : ' pull' }/ {closingIssue .repository
670
- .owner }/ {closingIssue .repository .name }/ {closingIssue .number }"
672
+ href ={resolve (" /[pid=pid]/[org]/[repo]/[id=number]" , {
673
+ pid: metadata .type === " pull" ? " issues" : " pull" ,
674
+ org: closingIssue .repository .owner ,
675
+ repo: closingIssue .repository .name ,
676
+ id: ` ${closingIssue .number } `
677
+ })}
671
678
variant =" secondary"
672
679
>
673
680
Open {metadata .type === " pull" ? " issue" : " pull request" }
You can’t perform that action at this time.
0 commit comments