I have a very stranget issue on my site with Google Search Console.
I've added my sitemap here: https://formulastocks.com/sitemap.xml
which links to 2 other site maps:
https://formulastocks.com/sitemap_articles.xml
and
https://formulastocks.com/sitemap_pages.xml
I triple checked the URLs on all of them and they are fine. Google discovers both sitemaps and says it finds the URLs.
However when checking the coverage report I see that all my article URLs are completely messed up.
You can see the pages URLs looks just fine, but the article ones have the entire domain name added twice (obviously) resulting in an error and Google not indexing them correctly.
Obviously Google is ignoring my articles sitemap and instead choosing to crawl my site using the links (I can't think of any other reason it would make up this URL?)
So first thing I did was to check my articles page here: https://formulastocks.com/articles
and my links work correctly in the browser, if I click it. It takes me to the correct article URL. So no problem there.
However I did notice in my tag that the href doesn't include the entire domain name. An example looks like this:
<a href="/articles/mindful-trader-vs-formula-stocks">
...
</a>
Instead of:
<a href="https://formulastocks.com/articles/mindful-trader-vs-formula-stocks">
...
</a>
But I can't imagine Google's crawler does not work with the /
pattern?
By the way I am using next.js' Link component for this following their documentation. So this is the default way it works.
Do I really have to find some strange method of pre-fixing all my <a>
tags with the full domain name? (if that's the case why are all my other URLs using the same method normal?
I would really appreciate some help explaining how Google could come up with these nonsensical URLs for my site and refuse to index my pages.
I also double-checked and I don't have links to the articles anywhere else on the website other than the sitemap and the articles page.
Thanks!