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

feat: (LAR-83) improve SEO, remove unecessary links #161

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions app/Console/Commands/GenerateSitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ final class GenerateSitemap extends Command
* @var array|string[]
*/
private array $noIndexPaths = [
'',
'/forum/*',
'/forum/channels',
'/forum/channels/*',
'/user',
'/user/*',
'/dashboard/*',
'/rules',
'/terms',
'/privacy',
'/faq',
'/auth/github',
];

public function handle(): void
Expand Down
11 changes: 0 additions & 11 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,10 @@ public function boot(): void
$this->routeBindings();

$this->routes(function (): void {
// Route::prefix('api')
// ->middleware('api')
// ->namespace($this->namespace)
// ->group(base_path('routes/api.php'));

Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
});

Route::macro('redirectMap', function (array $map, int $status = 302): void {
foreach ($map as $old => $new) {
Route::redirect($old, $new, $status)->name($old);
}
});
}

protected function configureRateLimiting(): void
Expand Down
Loading
Loading