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 2525 import { MediaQuery , SvelteMap } from " svelte/reactivity" ;
2626 import { scrollY } from " svelte/reactivity/window" ;
2727 import { browser } from " $app/environment" ;
28+ import { resolve } from " $app/paths" ;
2829 import { navigating , page } from " $app/state" ;
2930 import {
3031 ArrowUpRight ,
447448 This pull request was released in
448449 <Button
449450 variant =" link"
450- href ="/package/ {tagName }# {tagVersion }"
451+ href ={resolve (" /package/[...package]" , {
452+ package: tagName
453+ }) + ` #${tagVersion } ` }
451454 class =" h-auto p-0 text-green-500"
452455 >
453456 {tagName }
666669 <div class =" flex flex-wrap justify-end gap-4" >
667670 {#each linkedEntities as closingIssue (closingIssue .number )}
668671 <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+ })}
671678 variant =" secondary"
672679 >
673680 Open {metadata .type === " pull" ? " issue" : " pull request" }
You can’t perform that action at this time.
0 commit comments