Fossil SCM
Fix the hyperlink to wiki so that it uses a query parameter for the wiki page name.
Commit
421a1e1fa4f9e5d4fa628163f48f50ef17357b9b
Parent
783df88ba84e919…
1 file changed
+1
-1
+1
-1
| --- src/wikiformat.c | ||
| +++ src/wikiformat.c | ||
| @@ -783,11 +783,11 @@ | ||
| 783 | 783 | ){ |
| 784 | 784 | blob_appendf(p->pOut, zTarget); |
| 785 | 785 | }else if( zTarget[0]=='/' ){ |
| 786 | 786 | blob_appendf(p->pOut, "%s%h", g.zBaseURL, zTarget); |
| 787 | 787 | }else if( wiki_name_is_wellformed(zTarget) ){ |
| 788 | - blob_appendf(p->pOut, "%s/wiki/%T", g.zBaseURL, zTarget); | |
| 788 | + blob_appendf(p->pOut, "%s/wiki?name=%T", g.zBaseURL, zTarget); | |
| 789 | 789 | }else{ |
| 790 | 790 | blob_appendf(p->pOut, "error"); |
| 791 | 791 | } |
| 792 | 792 | } |
| 793 | 793 | |
| 794 | 794 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -783,11 +783,11 @@ | |
| 783 | ){ |
| 784 | blob_appendf(p->pOut, zTarget); |
| 785 | }else if( zTarget[0]=='/' ){ |
| 786 | blob_appendf(p->pOut, "%s%h", g.zBaseURL, zTarget); |
| 787 | }else if( wiki_name_is_wellformed(zTarget) ){ |
| 788 | blob_appendf(p->pOut, "%s/wiki/%T", g.zBaseURL, zTarget); |
| 789 | }else{ |
| 790 | blob_appendf(p->pOut, "error"); |
| 791 | } |
| 792 | } |
| 793 | |
| 794 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -783,11 +783,11 @@ | |
| 783 | ){ |
| 784 | blob_appendf(p->pOut, zTarget); |
| 785 | }else if( zTarget[0]=='/' ){ |
| 786 | blob_appendf(p->pOut, "%s%h", g.zBaseURL, zTarget); |
| 787 | }else if( wiki_name_is_wellformed(zTarget) ){ |
| 788 | blob_appendf(p->pOut, "%s/wiki?name=%T", g.zBaseURL, zTarget); |
| 789 | }else{ |
| 790 | blob_appendf(p->pOut, "error"); |
| 791 | } |
| 792 | } |
| 793 | |
| 794 |