CuBoulder / custom_homepage_bundle

Custom Bundle for Homepage
http://www.colorado.edu
0 stars 0 forks source link

Add redirect similar to /gsearch for /search/custom/searchdirect.cgi #148

Closed kreynen closed 6 years ago

kreynen commented 7 years ago

http://www.colorado.edu/search/custom/searchdirect.cgi used to land on legacy on a perl script that rewrote the post values from the forms listed in https://github.com/CuBoulder/express/issues/1587 and passed them on as a query string to http://cusearch.colorado.edu/search?q=test+site

After the https change, that perl stopped working. Rather than rewrite the perl, we removed the legacy exception.

As long as the post values are being redirected, we should be able to declare a menu item for /search/custom/searchdirect.cgi that reformats the post into query string values that will work with search?cse=

<form action="http://www.colorado.edu/search/custom/searchdirect.cgi" method="post" _lpchecked="1">
                    <input type="hidden" name="searchtype" value="http://www.colorado.edu/">
                    <div id="inputwrapper">
                        <input type="text" class="text" name="searchstring" value="CU Search" onfocus="this.value='';">
                    </div>
                    <input type="image" src="../submit.png" value="Submit" size="22,23" border="0"> 
                </form>