Cross site confusion bug?
-
The Cloud version of your broken link checker does not properly handle sites which might share a base domain. I have two *separate* sites, both implemented with WordPress: https://www.deepsoft.com/ (my company site) and https://www.deepsoft.com/~heller/ (my personal site). The BLC is getting confused and reporting broken links when scanning my personal site. I think it is confused by relative links.
The page I need help with: [log in to see the link]
-
Hello @robertpheller
I can see what you mean, despite of being two different sites, both share the same domain (www.deepsoft.com) and when you are running BLC in your personal site, and sees a link to your company site, since both are the same domain it will consider it’s also part of the same site.
I’m checking this with our development team, in order to investigate more about this issue.
Kind regards,
Jair.Hello @robertpheller
Broken Link Checker, in The Hub, has an option to exclude URLs by using REGEX rules. You may be familiar with excluding specific pages but with a proper REGEX rule it may be possible to ignore all the URLs from one site when you use BLC in the other site.
The option is located in The Hub, by going to the “Link Checker” section, then click on the menu of that page and then click on “Ignore URL Rules”.
REGEX rules can be complicated to create and test. I’m providing examples of these rules, which I tested using the Regex101 site, but make sure to test these on your own and make the necessary changes according to your site(s) needs.
For your personal site, to ignore all the pages from your company site, the rule can be:
^https:\/\/(www.)?deepsoft.com\/(?!~heller).*For your company site, to ignore all the pages from your personal site, the rule can be:
^https:\/\/(www\.)?deepsoft\.com\/~heller.*These are just examples, but are a good starting point to properly ignore all the unwanted pages.
Kind regards,
Jair.This rule hackery should not be needed! It seems to be needed because the cloud-based link checker is missing “knowledge” that the local version gets implicity.
The rules don’t seem to work. I have reverted both sites to the local checker, which seems to work. A big part of the problem is that I am using relative links (ommiting the
https://www.deepsoft.comandhttps://www.deepsoft.com/~heller— the wp-admin/options-general.php page’s “Site Address (URL)” setting).-
This reply was modified 5 months, 1 week ago by
Robert Heller.
Hello @robertpheller
I will report this issue to our development team to see how we can improve the Cloud Scanner in the next updates.
For now, the best solution is to ignore those links. We will get back to you if we find a better solution.
Best Regards,
AminHi @robertpheller,
Could you please try this regex and see if that helps? ie on your personal site
^https?://(www\.)?deepsoft\.com/(?!~heller)
^/(?!~heller)
^//(www\.)?deepsoft\.com/(?!~heller)On company site:
^https?://(www\.)?deepsoft\.com/~heller
^/~heller
^//(www\.)?deepsoft\.com/~hellerPlease do let us know if the above regex helps.
Regards,
Nithin
OK, I will try these rules, but this rule hackery really should not be needed. The http/html standards allow for relative links and *every* webbrowser is not confused. Also note that the local version is not confused either. There really is a bug in the cloud-based link checker. And it is a pretty basic one. This is not really an exotic edge case.
Hello @robertpheller,
I hope things are going well for you.
I understand how frustrating the situation is. However, we’ve passed the feedback to our team for review and, if needed, to improve the plugin. Currently, we don’t have an ETA from their end to provide you with. Until then, I recommend keeping an eye on future updates.
I highly appreciate your cooperation in this situation.
–
Kind Regards,
Imran KhanHello again @robertpheller,
To reproduce the same issue on the BLC, we created two sites
– Website-1: https://website.com/ – Separate WordPress Installation, added some dummy pages, many URLs– Website-2: https://website.com/heller/ – Another standalone WordPress Installation, added the same dummy pages, same URLs list too; some of them are broken, and a few of them have a warning + redirect. It’s a bag of mixed-status URLs.
Added the BLC to site-1; after that, we’ve connected the WPMUDEV Account to enable the Cloud Engine and perform the scanning. It works fine; I wasn’t able to replicate the issue.
I used the same scanning approach on the second site to see if the issue originates there, but it didn’t.
The issue might be on your side with the site or server setup. To help narrow it down, could you enable Cloud Engine so we can investigate it more closely?
A big part of the problem is that I am using relative links (ommiting the https://www.deepsoft.com and https://www.deepsoft.com/~heller — the wp-admin/options-general.php page’s “Site Address (URL)” setting).
Do you mean the tilde ~ causing the issue?
Looking forward to hearing from you soon.
–
Kind Regards,
Imran KhanNo, I am not using fully qualified links in my pages when they have “internal” links (links to other pages on the same site). WordPress will create fully qualified links by default. This is fine if you never mirror the site and most people leave this as is and would never have problems. For testing purposes I have done things like mirror my sites to my home server, using different base URLs, so I have changed the generated fully qualified URLs to relative ones. What is happening is that your broken link checker is seeing html that looks like this snipet:
<div class="entry-content"> <p><img decoding="async" src="https://www.deepsoft.com/~heller/wp-content/uploads/2010/06/dontpanic.gif" alt="Don't Panic" title="dontpanic" width="72" height="64" class="alignleft size-full wp-image-3" /> Hello,<br /> I am Robert Heller and I used to be the main <a href="home/what-i-do/">systems guru</a> for the <a href="https://www.cics.umass.edu/organizations/computer-vision-research-lab">Computer Vision Research Lab</a> in the <a href="http://www.cs.umass.edu/">Computer Science Department</a> at the <a href="http://www.umass.edu/">University of Massachusetts</a>. I am noted for some <a href="home/some-words-of-wisdom">strong opinions</a> about computer operating systems.</p> <p>Check out my online <a href="resume/">resume</a>. All sorts of interesting factoids of my life.</p> <p>I have a small shareware and consulting <a href="https://www.deepsoft.com/">business</a> and I also fiddle around in my <a href="workshop/">workshop</a>, and have been designing <a href="https://github.com/RobertPHeller/RPi-RRCircuits">circuits for model railroading</a>, with some circuit boards and kits available for sale on <a href="https://www.thecountryrobot.com/shop/">The Country Robot site</a>. I take pictures of my <a href="family-pictures/">extended family</a> and have several <a href="home/hobbies">hobbies</a>, lurk on various <a href="home/lurkage">newsgroups</a>, and am very <a href="home/knowledge">knowledgeable</a> about computer stuff. I own various ARM SBCs, including a Raspberry Pi 5, which I use as my main desktop system. I have a number of other machines in various states of functionality.</p> <p>I have learned to speak a little <a href="http://www.kli.org/">Klingon</a> and invented a couple of heavy duty snacks: <a href="home/klingon-treats">Klingon Treats</a> and <a href="home/betazoid-treats">Betazoid Treats</a>. </p> <p>I am fairly easy to <a href="home/access-info/">contact</a>, although a prefer to be E-Mailed at <a href="mailto:heller@deepsoft.com">heller@deepsoft.com</a>.</p> <div style="clear:both;"></div> </div><!-- .entry-content -->You will notice that most of the href’s don’t have a full URL (https://…), but only page names. You link checker is prefixing that with https://www.deepsoft.com/, instead of the base URL of the actual page this HTML occured on. (See: https://duckduckgo.com/?t=ffab&q=relative+url+vs+absolute+url&ia=web for more information.)
Hi @robertpheller,
Thanks for clarifying. I’m afraid that, at the moment, the cloud version of BLC doesn’t fully support relative links, which can cause behaviors like the ones you’ve noticed since you have subdirectory WordPress installs.
We have already reported this to our teams to check what further improvements could be implemented down the roadmap in such instances.
At the moment, I’m afraid there isn’t any exact ETA we could provide.
Regards,
Nithin
Well, not supporting relative links would be a pretty critical bug, since relative links are a well established standard for HTTP/HTML…
We confirm this we our developers and at this moment the relative links are not supported by the Broken link checker plugin.
While its already reported to our development team we still can’t provide an ETA.
Since the bug was acknowledged, reported, and tasked to be fixed, we are marking this as resolved, but feel free to let us know if you have any additional questions.
Kind Regards,
Amin -
This reply was modified 5 months, 1 week ago by
You must be logged in to reply to this topic.