Avatar of Bert2005
Bert2005Flag for United States of America

asked on 

Link on site doesn't work but same address if typed directly in does

Hi Experts,

So, I am caught between my site designer and one of the directors with the American Academy of Pediatric patient education and handouts.
When you go to the site and click on Resources in the menu, then Patient Education and Handouts, you will get the proper site of the AAP with the proper address in the address field. However, if you type a search word, let's use "bronchitis," you will get a white page. NOW...if you highlight the address in the address field, it will take you yet again to the correct page. But, now it will work.

Taken a step further, you can type the address that is in the address bar and hit enter and it will go to the correct page, i.e. you can search on "bronchitis" or "cold" and it will go to that page.

Interestingly, when the guy from the AAP was first setting this up, he couldn't get it to work until I gave him the exact subpage. This should be very simple. All of the information you get comes directly from the AAP website.

Thank you.

Bert

* Internal URLsWeb Servers

Avatar of undefined
Last Comment
Bembi
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

weird...i was able to simulate that the first time; it opened a new tab with a blank page
went back a second time and started over; put in bronchitis and it opened a new tab with search results
Avatar of David Favor
David Favor
Flag of United States of America image

Works intermittently.

Debug this by simultaneously watching your Webserver logs + tracking file/database I/O.

Might be a simple as a slow query, so once query caches... then subsequent queries run fast...

Be sure you also enable slow query logging + missing indexes logging.
Avatar of Bembi
Bembi
Flag of Germany image

Hello,
what I see is, that you use onsubmit="addQueryString()"
The action item is action="https://patiented.aap.org/search2.aspx?remoteSearch=bronchitis"
while the final URL is
https://patiented.solutions.aap.org/solr/searchResults.aspx?q=bronchitis&restypeid=1

As long as the target site was loaded at least one time. The seach work.(Session Cookie created)
If I close the browser and reopen, and navigate via the startpage, it doesn't load.

So two points I have in my mind....

a.) The addQueryString() function.
b.) The session....(as it works as far as the target is loaded at least once).
If the search doesn't work, the sites stays on
www.riverviewpediatrics.org/patient-education-and-handouts
and on that page I see an error 404 (not found)

The original page shows:

User generated image
The failing page shows:

User generated image
I don't have really an explanation, but I would have possibly the addQueryString() function in mind...

By the way, the target is obviously a SharePoint, from the template version 2013, at least the site template states a version number of 15.0.0.4709 which points to a template from around 2015. The template version is not the actual SharePoint Version, just an indicator, with which version the site was created. 


ASKER CERTIFIED SOLUTION
Avatar of Snarf0001
Snarf0001
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Bert2005
Bert2005
Flag of United States of America image

ASKER

Interesting. Way over my head but information I can pass along and hope it gets to the right person. I wonder why this seems to work for every other pediatric practice except mine. It will be difficult unless the person who is in charge of connecting these knows someone who knows the code behind it, I don't know if it will ever be fixed.

It is also interesting, although likely easily explainable by the above explanations that when you type in a search for, say, "cold," and click on Go or Enter, it will give you a blank page. When you go to the search page again, the word "cold" will still be in the search field. Not until you do the hard refresh do you get to the same screen but with the field cleared. Type in code now, and it goes where it should.

Anyway, I very much appreciate the detailed input, and I will definitely show it to the two people with the best way to fix it.

I have a question as it relates to its happening to me. All of this information is somewhere on the AAP website, likely password protected since I had to pay quite a lot for access to it. When the AAP guy clicks on a URL to that page, it will simply open properly. I am not just given this link. I am supplied with code to give to my web builder who then embeds it in the site. Would you say it is somewhere in this tradeoff that the error is occurring. He is giving code that is buggy vs my web builder is embedding the code wrong. It just seems like she would enter what is given to her.

Thank you.

Bert
Avatar of Bert2005
Bert2005
Flag of United States of America image

ASKER

So, my web developer read the two posts above and wrote the following in her email to me:

"in reading the email below I had a thought, I have disabled ajax loading on the site and the link now works.  There are times when custom code isn't workable with ajax so this seems to have helped."

So, not sure if that was the fix you were looking for, but once she did the above, the search works fine. Thank you very much.

I have read through Bemby's and Snarf's comments multiple times, and I can't tell which one is the most correct, but I believe I saw ajax a number of times in Snarf's so I will go with that one.
Avatar of Bert2005
Bert2005
Flag of United States of America image

ASKER

I am never sure if I am allowed to choose two or more comments as the solution. Even if I could, I am not sure I understand coding well enough to know.
SOLUTION
Avatar of Bembi
Bembi
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Web Servers
Web Servers

A web server refers to the software that helps to deliver web content that can be accessed either through the Internet or through an intranet. The primary function of a web server is to store, process and deliver web pages to clients. The communication between client and server takes place using the Hypertext Transfer Protocol (HTTP). The most common use of web servers is to host websites, but there are other uses such as gaming, data storage, running enterprise applications, handling email, FTP, etc.

33K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo