Skip to content

Commit

Permalink
Remove old/deprected links for sitemaps submission
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Nov 15, 2024
1 parent b5e5822 commit 94582e9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
7 changes: 0 additions & 7 deletions app/Module/SiteMapModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,9 @@ public function getAdminAction(ServerRequestInterface $request): ResponseInterfa

$sitemap_url = route('sitemap-index');

// This list comes from https://en.wikipedia.org/wiki/Sitemaps
$submit_urls = [
'Bing/Yahoo' => Html::url('https://www.bing.com/webmaster/ping.aspx', ['siteMap' => $sitemap_url]),
'Google' => Html::url('https://www.google.com/webmasters/tools/ping', ['sitemap' => $sitemap_url]),
];

return $this->viewResponse('modules/sitemap/config', [
'all_trees' => $this->tree_service->all(),
'sitemap_url' => $sitemap_url,
'submit_urls' => $submit_urls,
'title' => $this->title(),
]);
}
Expand Down
15 changes: 0 additions & 15 deletions resources/views/modules/sitemap/config.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use Illuminate\Support\Collection;
/**
* @var Collection<int,Tree> $all_trees
* @var string $sitemap_url
* @var array<string,string> $submit_urls
* @var string $title
*/

Expand Down Expand Up @@ -46,17 +45,3 @@ use Illuminate\Support\Collection;
<p>
<?= I18N::translate('URL') ?> — <a href="<?= e($sitemap_url) ?>"><?= e($sitemap_url) ?></a>
</p>

<p>
<?= I18N::translate('To tell search engines that sitemaps are available, you can use the following links.') ?>
</p>

<ul>
<?php foreach ($submit_urls as $search_engine => $url) : ?>
<li>
<a href="<?= e($url) ?>">
<?= e($search_engine) ?>
</a>
</li>
<?php endforeach ?>
</ul>

1 comment on commit 94582e9

@LarsRabe
Copy link
Contributor

@LarsRabe LarsRabe commented on 94582e9 Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved #4772

Please sign in to comment.