Fossil SCM

fix bug in /tktview: use relative instead of absolute link for version

jkosche 2025-04-18 16:12 trunk
Commit f1db9ead1d44290a0cb029f02987418b348685e178d8e2f5b459dbda6532648b
1 file changed +2 -2
+2 -2
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -555,18 +555,18 @@
555555
@ set urlfoundin [httpize $foundin]
556556
@ set tagpattern {^[-0-9A-Za-z_\\.]+$}
557557
@ if [regexp $tagpattern $foundin] {
558558
@ query {SELECT count(*) AS match FROM tag
559559
@ WHERE tagname=concat('sym-',$foundin)} {
560
-@ if {$match} {set versionlink "/timeline?t=$urlfoundin"}
560
+@ if {$match} {set versionlink "timeline?t=$urlfoundin"}
561561
@ }
562562
@ }
563563
@ set hashpattern {^[0-9a-f]+$}
564564
@ if [regexp $hashpattern $foundin] {
565565
@ set pattern $foundin*
566566
@ query {SELECT count(*) AS match FROM blob WHERE uuid GLOB $pattern} {
567
-@ if {$match} {set versionlink "/info/$urlfoundin"}
567
+@ if {$match} {set versionlink "info/$urlfoundin"}
568568
@ }
569569
@ }
570570
@ if {$versionlink eq ""} {
571571
@ puts $foundin
572572
@ } else {
573573
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -555,18 +555,18 @@
555 @ set urlfoundin [httpize $foundin]
556 @ set tagpattern {^[-0-9A-Za-z_\\.]+$}
557 @ if [regexp $tagpattern $foundin] {
558 @ query {SELECT count(*) AS match FROM tag
559 @ WHERE tagname=concat('sym-',$foundin)} {
560 @ if {$match} {set versionlink "/timeline?t=$urlfoundin"}
561 @ }
562 @ }
563 @ set hashpattern {^[0-9a-f]+$}
564 @ if [regexp $hashpattern $foundin] {
565 @ set pattern $foundin*
566 @ query {SELECT count(*) AS match FROM blob WHERE uuid GLOB $pattern} {
567 @ if {$match} {set versionlink "/info/$urlfoundin"}
568 @ }
569 @ }
570 @ if {$versionlink eq ""} {
571 @ puts $foundin
572 @ } else {
573
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -555,18 +555,18 @@
555 @ set urlfoundin [httpize $foundin]
556 @ set tagpattern {^[-0-9A-Za-z_\\.]+$}
557 @ if [regexp $tagpattern $foundin] {
558 @ query {SELECT count(*) AS match FROM tag
559 @ WHERE tagname=concat('sym-',$foundin)} {
560 @ if {$match} {set versionlink "timeline?t=$urlfoundin"}
561 @ }
562 @ }
563 @ set hashpattern {^[0-9a-f]+$}
564 @ if [regexp $hashpattern $foundin] {
565 @ set pattern $foundin*
566 @ query {SELECT count(*) AS match FROM blob WHERE uuid GLOB $pattern} {
567 @ if {$match} {set versionlink "info/$urlfoundin"}
568 @ }
569 @ }
570 @ if {$versionlink eq ""} {
571 @ puts $foundin
572 @ } else {
573

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button