rejetto forum

"Search" button redirects to main page...

Awesoft · 15 · 10083

0 Members and 1 Guest are viewing this topic.

Offline Awesoft

  • Occasional poster
  • *
    • Posts: 34
    • View Profile
I have my homepage (.html) and a protected shared folder (hfs) with some folders/files on it.
When I try to search anything, it redirects to the main page.

Where is the problem?


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
no problem
look into your  template and find it

Quote
{{if| {{get|can recur}} |
  <td nowrap>
    <div class=button>
    <form action='/' style='width:160px'>
    <input name=search size=10 value="{{urlvar|search}}">
    <input type=submit value=search>
    </form>
    </div>

action='/'  redirects you to root page, you can change it  by action='%folder%'  to begin search from current folder

« Last Edit: December 10, 2007, 10:37:48 PM by mars »


Offline Awesoft

  • Occasional poster
  • *
    • Posts: 34
    • View Profile
no problem
look into your  template and find it

Quote
{{if| {{get|can recur}} |
  <td nowrap>
    <div class=button>
    <form action='/' style='width:160px'>
    <input name=search size=10 value="{{urlvar|search}}">
    <input type=submit value=search>
    </form>
    </div>

action='/'  redirects you to root page, you can change it  by action='%folder%'  to begin search from current folder



It works with action='/Folder/'

Thanks a lot.


Offline Awesoft

  • Occasional poster
  • *
    • Posts: 34
    • View Profile
I have another question:

After doing a search, the "UP" link doesn't works like parent (..), but it backs to the root (in this case, my homepage)

:-\
« Last Edit: December 10, 2007, 11:59:40 PM by Awesoft »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
not for me, all is ok with

{{if| {{get|can recur}} |
  <td nowrap>
    <div class=button>
    <form action='%folder%' style='width:160px'>
    <input name=search size=10 value="{{urlvar|search}}">
    <input type=submit value=search>
    </form>
    </div>




Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
It works with action='/Folder/'

remove the action='ANYTHING' and it will work.
it's much better.

After doing a search, the "UP" link doesn't works like parent (..), but it backs to the root (in this case, my homepage)

try the solution i told you. the up should work normally.


Offline Awesoft

  • Occasional poster
  • *
    • Posts: 34
    • View Profile
It works with action='/Folder/'

remove the action='ANYTHING' and it will work.
it's much better.

After doing a search, the "UP" link doesn't works like parent (..), but it backs to the root (in this case, my homepage)

try the solution i told you. the up should work normally.

After the search is completed, "UP" button links to "http://localhost" (not "http://localhost/Privado")

 ???

« Last Edit: December 13, 2007, 01:37:08 AM by Awesoft »


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
your template has a section [up]

can you copy  it into a post?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
as mars guessed, the [up] of your template is probably not compatible.

it should link to ".."


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
Another possibility is that you confuse the information

if you make a search in folder privado, he is the current folder and up is the link to root

add a folder under privado like test and go to it

make a search in test, you  receive NO FILES

place your mouse over the link UP and see what is the url in your status bar


Offline Awesoft

  • Occasional poster
  • *
    • Posts: 34
    • View Profile
Main "shared" page:



Searching a file:



After a search. (UP button (Atrás) should link to "/Privado/Programas/")



Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2068
    • View Profile
The conclusion is that you have no problem, what you obtain is completely normal :D

 ;D  Be delighted!  ;D

you can use this up section 

(extracted from HFS Terayon v1.2.1)

[up]
<span class="cattitle"> :: <script type="text/javascript">pathTreeArray = path.split('/'); for (i=1; i<pathTreeArray.length; i++) {pathTreeArray = '/'+pathTreeArray; pathTree = pathTree+pathTreeArray; document.write('<a href="'+pathTree+'" class="cattitle">'+pathTreeArray+'</a>')}; </script></span>


« Last Edit: December 14, 2007, 12:08:34 AM by mars »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
it's just a bad translation to spanish.

the original is UP not BACK.

while atràs is BACK in spanish.

my advice is to use the big LEFT arrow in your browser, that's just the atras you are searching for :)


Offline Awesoft

  • Occasional poster
  • *
    • Posts: 34
    • View Profile
I think it would have to be "Back to folder" instead of "UP" from "search results" page. (like the "Upload results" page). Meanwhile I'll click on "Atrás" button :)

Thank you.
« Last Edit: December 14, 2007, 09:02:44 PM by Awesoft »