Skip to content
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

Url of sitemap file is not updated if redirection #24

Open
LeMoussel opened this issue Oct 1, 2017 · 0 comments
Open

Url of sitemap file is not updated if redirection #24

LeMoussel opened this issue Oct 1, 2017 · 0 comments

Comments

@LeMoussel
Copy link

LeMoussel commented Oct 1, 2017

In the case of a redirection on the sitemap Url, Url is not updated with the new location.

For example http://cocon.se/sitemap.xml, 301 redirection to http://cocon.se/sitemap_index.xml

let sitemap = new sitemapper({
    url: 'http://cocon.se/sitemap.xml', 
    timeout: 5000 
  });
  sitemap.fetch()
    .then(({ url, sites }) => console.log(`url:${url}`, 'sites:', sites))
    .catch(function (error) {
        loggerConsole.warn(error);
    });

Display

url:http://cocon.se/sitemap.xml sites:
Array(124) ["http://cocon.se", "http://cocon.se/actus/vlc-2015.html", ....

url should be equal to http://cocon.se/sitemap_index.xml

@LeMoussel LeMoussel changed the title sitemap Url is not update if redirection Url of sitemap file is not update if redirection Oct 1, 2017
@LeMoussel LeMoussel changed the title Url of sitemap file is not update if redirection Url of sitemap file is not updated if redirection Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants