Fossil

Check-in [96fbcd13]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix hyperlinks for extra pages on the /sitemap so that they correctly resolve to the root of the repository.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:96fbcd1311c57e8dbbeb65b84c34caa8fecbff406370a6c28b4b2cc166439aae
User & Date: drh 2018-08-31 11:05:10
Context
2018-08-31
11:32
Omit the Forum Search at the top of the /forum page if search is disabled. check-in: d4281bbc user: drh tags: trunk
11:05
Fix hyperlinks for extra pages on the /sitemap so that they correctly resolve to the root of the repository. check-in: 96fbcd13 user: drh tags: trunk
10:57
Fix to the configuration page for the License link in /sitemap. check-in: ace123b7 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sitemap.c.

47
48
49
50
51
52
53
54
55
56
57
58



59

60
61
62
63
64
65
66
  srchFlags = search_restrict(SRCH_ALL);
  style_header("Site Map");
  style_adunit_config(ADUNIT_RIGHT_OK);
  @ <ul>
  @ <li>%z(href("%R/home"))Home Page</a>
  for(i=0; i<sizeof(aExtra)/sizeof(aExtra[0]); i++){
    char *z = db_get(aExtra[i].zProperty,0);
    if( z==0 ) continue;
    if( !inSublist ){
      @ <ul>
      inSublist = 1;
    }



    @ <li>%z(href("%s",z))%s(aExtra[i].zTitle)</li>

  }
  if( srchFlags & SRCH_DOC ){
    if( !inSublist ){
      @ <ul>
      inSublist = 1;
    }
    @ <li>%z(href("%R/docsrch"))Documentation Search</a></li>







|




>
>
>
|
>







47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
  srchFlags = search_restrict(SRCH_ALL);
  style_header("Site Map");
  style_adunit_config(ADUNIT_RIGHT_OK);
  @ <ul>
  @ <li>%z(href("%R/home"))Home Page</a>
  for(i=0; i<sizeof(aExtra)/sizeof(aExtra[0]); i++){
    char *z = db_get(aExtra[i].zProperty,0);
    if( z==0 || z[0]==0 ) continue;
    if( !inSublist ){
      @ <ul>
      inSublist = 1;
    }
    if( z[0]=='/' ){
      @ <li>%z(href("%R%s",z))%s(aExtra[i].zTitle)</li>
    }else{
      @ <li>%z(href("%s",z))%s(aExtra[i].zTitle)</li>
    }
  }
  if( srchFlags & SRCH_DOC ){
    if( !inSublist ){
      @ <ul>
      inSublist = 1;
    }
    @ <li>%z(href("%R/docsrch"))Documentation Search</a></li>