Fossil SCM
Set an appropriate base URL for the /file page when it is using name= and ci= query parameters.
Commit
a7343c6a0cb227fac1af669642e722a4ba6dd6213d6874f045896f0dd9e476ce
Parent
3091605fdf469d2…
1 file changed
+3
+3
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -2398,14 +2398,17 @@ | ||
| 2398 | 2398 | } |
| 2399 | 2399 | |
| 2400 | 2400 | if( isFile ){ |
| 2401 | 2401 | if( isSymbolicCI ){ |
| 2402 | 2402 | zHeader = mprintf("%s at %s", file_tail(zName), zCI); |
| 2403 | + style_set_current_page("doc/%t/%T", zCI, zName); | |
| 2403 | 2404 | }else if( zCIUuid && zCIUuid[0] ){ |
| 2404 | 2405 | zHeader = mprintf("%s at [%S]", file_tail(zName), zCIUuid); |
| 2406 | + style_set_current_page("doc/%S/%T", zCIUuid, zName); | |
| 2405 | 2407 | }else{ |
| 2406 | 2408 | zHeader = mprintf("%s", file_tail(zName)); |
| 2409 | + style_set_current_page("doc/tip/%T", zName); | |
| 2407 | 2410 | } |
| 2408 | 2411 | }else if( descOnly ){ |
| 2409 | 2412 | zHeader = mprintf("Artifact Description [%S]", zUuid); |
| 2410 | 2413 | }else{ |
| 2411 | 2414 | zHeader = mprintf("Artifact [%S]", zUuid); |
| 2412 | 2415 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2398,14 +2398,17 @@ | |
| 2398 | } |
| 2399 | |
| 2400 | if( isFile ){ |
| 2401 | if( isSymbolicCI ){ |
| 2402 | zHeader = mprintf("%s at %s", file_tail(zName), zCI); |
| 2403 | }else if( zCIUuid && zCIUuid[0] ){ |
| 2404 | zHeader = mprintf("%s at [%S]", file_tail(zName), zCIUuid); |
| 2405 | }else{ |
| 2406 | zHeader = mprintf("%s", file_tail(zName)); |
| 2407 | } |
| 2408 | }else if( descOnly ){ |
| 2409 | zHeader = mprintf("Artifact Description [%S]", zUuid); |
| 2410 | }else{ |
| 2411 | zHeader = mprintf("Artifact [%S]", zUuid); |
| 2412 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -2398,14 +2398,17 @@ | |
| 2398 | } |
| 2399 | |
| 2400 | if( isFile ){ |
| 2401 | if( isSymbolicCI ){ |
| 2402 | zHeader = mprintf("%s at %s", file_tail(zName), zCI); |
| 2403 | style_set_current_page("doc/%t/%T", zCI, zName); |
| 2404 | }else if( zCIUuid && zCIUuid[0] ){ |
| 2405 | zHeader = mprintf("%s at [%S]", file_tail(zName), zCIUuid); |
| 2406 | style_set_current_page("doc/%S/%T", zCIUuid, zName); |
| 2407 | }else{ |
| 2408 | zHeader = mprintf("%s", file_tail(zName)); |
| 2409 | style_set_current_page("doc/tip/%T", zName); |
| 2410 | } |
| 2411 | }else if( descOnly ){ |
| 2412 | zHeader = mprintf("Artifact Description [%S]", zUuid); |
| 2413 | }else{ |
| 2414 | zHeader = mprintf("Artifact [%S]", zUuid); |
| 2415 |