elixirschool / school_house

The new era of Elixir School now powered by @phoenixframework
https://elixirschool.com/
Apache License 2.0
155 stars 49 forks source link

Dark mode XML sitemap keeps showing beta URLs #156

Closed jaimeiniesta closed 3 years ago

jaimeiniesta commented 3 years ago

This XML sitemap:

https://elixirschool.com/sitemap_dark_mode.xml

Is still showing the URLs for the beta site:

<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
    <loc>https://beta.elixirschool.com/blog?ui=dark</loc>
  </url>
  <url>
    <loc>https://beta.elixirschool.com/privacy?ui=dark</loc>
  </url>
  <url>
    <loc>https://beta.elixirschool.com/blog/rocket-validator?ui=dark</loc>
  </url>
  ...
kinson commented 3 years ago

When I open that link this is what I see (sorry for the indentation):

<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://elixirschool.com/blog?ui=dark</loc>
</url>
<url>
<loc>https://elixirschool.com/privacy?ui=dark</loc>
</url>
<url>
<loc>
https://elixirschool.com/blog/rocket-validator?ui=dark
</loc>
</url>

Is Rocket Validator still trying to validate against beta.elixirschool.com for dark mode?

jaimeiniesta commented 3 years ago

Sorry @kinson - it looks like my browser was caching it. I refreshed it and now works fine, same for Rocket Validator

kinson commented 3 years ago

No worries @jaimeiniesta better safe than sorry 🙂