Home > front end >  New great god answer a question, about the pseudo static
New great god answer a question, about the pseudo static

Time:10-10

I built a website, for personal use, with 711 CMS program, open the pseudo static all pages after all, only the results of the search box to search is not normal, the code is not very familiar with, mapping a great god, please have a look at what is going wrong,

This is the first search, page displays normally, search results are normal

This is the first time the search is complete, is not normal to search again, more than indicated by the arrows in the figure a directory

This is a problem of the code, I estimate is the place where the arrow in the picture cause problems!
I was a small white of code, pursuing big brand where we teach

CodePudding user response:

Url='/search/+ encodeURIComponent (s) +' HTML '
Like this, is starting from the root directory joining together the url, or joining together is in the current directory

CodePudding user response:

After add slashes just refresh the current page, did not display the search content

CodePudding user response:

reference 1st floor LonelyHobo response:
url='/search/+ encodeURIComponent (s) +' HTML '
Like this, is starting from the root directory splicing url, otherwise it is in the current directory splicing
problem solved, thank you! I added a piece of code! Cause has been refreshed
  • Related