1

I am currently working on a site in sp 2010. I have a cqwp that displays news items from a list using a custom itemstyle. Each news item has a published hyperlink field used to link off to the source of the article. If a user creates an item with a url in that field, then it works just fine when clicked. Some of these items may not have a url, so the field will be blank. When the field is blank and a user clicks on the item being displayed, they are redirected to a completely different page, when they shouldn't be redirected at all.

This issue only occurs in Internet Explorer. If a user clicks an a displayed item with no url link in Chrome, they are not redirected from the page.

  • Resolved using some javascript to make the news item not redirect if the link field was blank. – bberndt Jun 14 '17 at 20:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.