Skip to content

Commit

Permalink
Some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Jul 20, 2016
1 parent 5e2da83 commit 2ee5578
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function generate()

foreach ($products as $product) {
$productUrl = $this->sitemapUrlFactory->createNew();
$localization = $this->router->generate($product, [], true);
$localization = $this->router->generate('sylius_shop_product_show', ['slug' => $product->getSlug()], true);

$productUrl->setLastModification($product->getUpdatedAt());
$productUrl->setLocalization($localization);
Expand Down
12 changes: 6 additions & 6 deletions tests/Responses/Expected/sitemap/show_sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://localhost/p/mug-star-wars</loc>
<lastmod>2015-10-10T00:00:00+00:00</lastmod>
<loc>http://localhost/products/mug-star-wars</loc>
<lastmod>2015-10-10T00:00:00+02:00</lastmod>
<changefreq>always</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>http://localhost/p/mug-lotr</loc>
<lastmod>2015-10-04T00:00:00+00:00</lastmod>
<loc>http://localhost/products/mug-lotr</loc>
<lastmod>2015-10-04T00:00:00+02:00</lastmod>
<changefreq>always</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>http://localhost/p/mug-breaking-bad</loc>
<lastmod>2015-10-05T00:00:00+00:00</lastmod>
<loc>http://localhost/products/mug-breaking-bad</loc>
<lastmod>2015-10-05T00:00:00+02:00</lastmod>
<changefreq>always</changefreq>
<priority>0.5</priority>
</url>
Expand Down

0 comments on commit 2ee5578

Please sign in to comment.