I have a site, in a folder called 'kb'<br>you access it via <a href="http://webserver/kb">http://webserver/kb</a><br>it has a knowledge base. Inside this, is the index_html and I have some search pages...<br><br>---F_problemsearch---
<br>* a form for searching. It's put on the index_html page via tal:replace="structure here/F_problemsearch"<br><br>contents:<br><form name="searchbyproblem" action="ProcessSearch">
<br><input type="text" name="problem" style="color:white; background-color:green;"><br><button type="submit" name="st" value="Simple">Simple</button>
<br></form><br>------<br>ProcessSearch is a parameterized python script containing:<br>if st == 'Simple':<br> return container.problemsearch(problem=problem)<br>------<br>problemsearch (note the missing F_) is the search results. example:
<br><tr tal:repeat="item here/SQL_search_problems" tal:attributes="bgcolor python:test(path('repeat/item/even'), '#EEEEF3', '#FFFFFF')"><br><td tal:content="item/id" valign="top">ID</td>
<br><td tal:content="item/title" valign="top">Title</td><br><td tal:content="structure item/problem" valign="top">Problem</td><br><td><form name="selection" action="
<span class="attribute-value">ShowJustOne</span>"><input type="hidden" name="ID" tal:attributes="value item/id" value="42"><input type="submit" value="view"></form></td>
<br></tr><br>------<br>Clicking on the 'simple' button, it changes the URL to <a href="http://webserver/kb/ProcessSearch?problem=new&st=Simple">http://webserver/kb/ProcessSearch?problem=new&st=Simple
</a>. Everything works as expected. However, now I want to add another level. example: <a href="http://webserver/kb/review">http://webserver/kb/review</a><br>and I want to change only the index_html, and search pages (so someone can review articles after they are submitted). I copied the search pages listed above in the new 'review' folder. I changed the text of the button in "problemsearch" above to "review" instead of "view. When I try it out, I go to
<a href="http://webserver/kb/review">http://webserver/kb/review</a>. I type in my search, click "simple" and the URL changes to this: <a href="http://webserver/kb/ProcessSearch?problem=new&st=Simple">http://webserver/kb/ProcessSearch?problem=new&st=Simple
</a><br>I'd like it to use the files in '/kb/review' before using the files in /kb and I thought that's what acquisition did (index_html behaves this way!) however, it's not doing it correctly. The only way I can get it to properly work is by changing the URL to this:
<a href="http://webserver/kb/review/">http://webserver/kb/review/</a> (adding a trailing slash). This website is used internally by users who will be manually typing the URL. Is there some way I can get <a href="http://webserver/kb/review">
http://webserver/kb/review</a> to work as well as <a href="http://webserver/kb/review/">http://webserver/kb/review/</a> ?<br><br>-- <br>Thanks,<br>Derek Wilson<br>