-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sitemap.xml has too many homepage references #33
Comments
Same problem here! |
I have also posted this topic on the forum at Statamic. https://statamic.com/forum/3627-seo-pro-sitemap-xml-has-too-many-homepage-references I will post back here if there is a response. |
Same here. Any update on this? |
Are these homepage references just Entries within a Collection that has no route set, maybe? Lines 59 to 68 in 86a7b21
/**
* Get the full, absolute URL
*
* @return string
*/
public function absoluteUrl()
{
return URL::makeAbsolute(
URL::prependSiteUrl($this->uri(), $this->locale()),
$this->locale()
);
} where |
Yeah, it's fixed in |
This issue is most likely caused by a collection without a route. For each of those collections you don't need URLs for, go into |
Thank you @jasonvarga I can confirm downloading the latest version of SEO Pro solves the issue. Perfect! |
There is still a slight issue… I can't exclude a collection from both a generated sitemap 'and' the SEO Pro reports. When setting a default for a section, let's call it "My Collection":
I can't disable a section 'and' exclude it from the sitemap at the same time. This means a Collection Default is either enabled and the sitemap excluded, or disabled with the sitemap enabled. Both can be on at the same time, but not off. |
Is anyone else experiencing this… in |
Are you running 2.10.7 and SEO Pro 1.1? I believe that's fixed now. |
Just tested this with both of the updates (although SEO Pro was version 1.1.1). No joy. Can't have both excluded from reports and sitemap :( |
…'t be in the sitemap either. Fixes #33 even better.
Just released 1.1.2 which fixes this. |
That did fix it @jasonvarga. The When the Section Default is disabled the sitemap options still show as enabled. Functionally this change works, but could have a slightly improved UX (by disabling sitemap options too). Great work chaps. Thanks |
We have installed the SEO Pro addon, everything is working great! However, the generated
sitemap.xml
outputs ~50 references to the homepage…(Also tested on our 'live' server, same result)
In the addon settings, under
Tools > SEO Pro > Site Defaults
, I have disabled SEO Pro for any Collection that does not directly output it's own page/URL, which did not change the output.All other page/URL references in the generated
sitemap.xml
a correct.Has anyone else encountered this, or have any bright ideas on a possible fix?
:)
The text was updated successfully, but these errors were encountered: