Changeset 11306


Ignore:
Timestamp:
2006-03-07T15:26:35+13:00 (18 years ago)
Author:
kjdon
Message:

used to use _httpdoc_ in the new link, but that has an & entity in it and doesn't work in this situation. So have hardcoded the value of _httpdoc_ in here (_gwcgi_?e=_compressedoptions_&a=d)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/extlinkaction.cpp

    r9931 r11306  
    132132    if (arg_href.empty()) return false;
    133133
     134    text_t httpdoc = "_gwcgi_?e=_compressedoptions_&a=d";
    134135    if (args["rl"] == "1") {
    135136
     
    142143      if (get_info (arg_href, thiscollection, args["l"], metadata, false, collectproto, response, logout)) {
    143144    if (!response.docInfo[0].metadata["section"].values[0].empty()) {
    144       link = "_httpdoc_&d=" + response.docInfo[0].metadata["section"].values[0];
     145      link = httpdoc+"&d=" + response.docInfo[0].metadata["section"].values[0];
    145146      return true;
    146147    }
     
    166167      if (get_info (arg_href, *col_here, args["l"], metadata, false, collectproto, response, logout)) {
    167168        if (!response.docInfo[0].metadata["section"].values[0].empty()) {
    168           link = "_httpdoc_&c=" + *col_here + "&d=" +
     169          link = httpdoc+"&c=" + *col_here + "&d=" +
    169170        response.docInfo[0].metadata["section"].values[0];
    170171          return true;
     
    188189                   outconvertclass &outconvert, ostream &textout,
    189190                   ostream &logout) {
    190 
     191 
    191192  if (args["href"].empty()) {
    192     // oops, this shouldn't happen
     193     // oops, this shouldn't happen
    193194    textout << outconvert << disp << ("_extlink:header_\n")
    194195        << ("_extlink:notfoundcontent_\n")
Note: See TracChangeset for help on using the changeset viewer.