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

react-router-sitemap creates 2 files: sitemap.xml and sitemap-0.xml #72

Closed
immunity20 opened this issue Feb 20, 2018 · 2 comments
Closed

Comments

@immunity20
Copy link

immunity20 commented Feb 20, 2018

Hello, my router is 🥇

<Router>
<Route path="/" component={App}>
      <IndexRoute component={Home} />
      <Route
        path="/aboutus"
        component={AboutUs}
      />
      <Route
        path="/account"
        component={Profile}
      />
</Route>
</Router>

sitemap creates 2 files sitemap.xml ( only contains /) and sitemap-0.xml (contains the rest paths).

@kuflash
Copy link
Owner

kuflash commented Feb 23, 2018

Hi @immunity20. Can you show your xml files?
Now, package generate 2 files, because we need support long sitemaps. First file storing links on sitemap chunks with max URLs.

It is possible of course to write a condition that will check the maximum number of URLs and decide to create several files or one. I will try to implement this in the near future.

@kuflash
Copy link
Owner

kuflash commented Aug 12, 2018

@immunity20 it's fixed by @daijobou3. I'm publish version 1.1.4 in npm with this is fix

@kuflash kuflash closed this as completed Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants