Skip to content

Commit 6917c97

Browse files
authored
feat: (LAR-83) improve SEO, remove unecessary links (#161)
1 parent 96c293b commit 6917c97

File tree

10 files changed

+174
-194
lines changed

10 files changed

+174
-194
lines changed

app/Console/Commands/GenerateSitemap.php

+9-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ final class GenerateSitemap extends Command
2020
* @var array|string[]
2121
*/
2222
private array $noIndexPaths = [
23-
'',
24-
'/forum/*',
23+
'/forum/channels',
24+
'/forum/channels/*',
25+
'/user',
2526
'/user/*',
27+
'/dashboard/*',
28+
'/rules',
29+
'/terms',
30+
'/privacy',
31+
'/faq',
32+
'/auth/github',
2633
];
2734

2835
public function handle(): void

app/Providers/RouteServiceProvider.php

-11
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,10 @@ public function boot(): void
2222
$this->routeBindings();
2323

2424
$this->routes(function (): void {
25-
// Route::prefix('api')
26-
// ->middleware('api')
27-
// ->namespace($this->namespace)
28-
// ->group(base_path('routes/api.php'));
29-
3025
Route::middleware('web')
3126
->namespace($this->namespace)
3227
->group(base_path('routes/web.php'));
3328
});
34-
35-
Route::macro('redirectMap', function (array $map, int $status = 302): void {
36-
foreach ($map as $old => $new) {
37-
Route::redirect($old, $new, $status)->name($old);
38-
}
39-
});
4029
}
4130

4231
protected function configureRateLimiting(): void

0 commit comments

Comments
 (0)