File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed
resources/views/components Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class="relative flex max-w-screen-lg items-start justify-center gap-10 md:gap-20
8383 class =" text-5xl font-black"
8484 x-ref =" plugins"
8585 >
86- Community
86+ Content
8787 </div >
8888
8989 {{-- Star --}}
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ class="p-2 transition duration-300 will-change-transform hover:translate-x-1 hov
114114 href =" {{ route (' articles' ) } }"
115115 class =" p-2 transition duration-300 will-change-transform hover:translate-x-1 hover:text-black motion-reduce:transition-none motion-reduce:hover:transform-none"
116116 >
117- Community
117+ Content
118118 </a >
119119 <a
120120 href =" {{ route (' consulting' ) } }"
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ class="h-2 w-2 bg-butter transition duration-300 group-hover/nav-link:rotate-90
128128 ' font-bold' => request ()-> routeIs (' articles*' ),
129129 ] )
130130 >
131- <div class =" gsap-fadein" >Community </div >
131+ <div class =" gsap-fadein" >Content </div >
132132
133133 @if (request ()-> routeIs (' articles*' ) )
134134 <div
Original file line number Diff line number Diff line change 11<?php
22
33use App \Http \Controllers ;
4+ use App \Models \Article ;
45use App \Models \Plugin ;
56use App \Models \Star ;
67use Illuminate \Http \RedirectResponse ;
125126});
126127
127128Route::prefix ('/community ' )->group (function () {
129+ Route::get ('/ ' , function () {
130+ return redirect (status: 301 )->route ('articles ' );
131+ });
132+
133+ Route::name ('articles. ' )->group (function () {
134+ Route::prefix ('/{article:slug} ' )->group (function () {
135+ Route::get ('/ ' , function (Article $ article ) {
136+ return redirect (status: 301 )->route ('articles.view ' , ['article ' => $ article ->slug ]);
137+ });
138+ });
139+ });
140+ });
141+
142+ Route::prefix ('/content ' )->group (function () {
128143 Route::get ('/ ' , Controllers \Articles \ListArticlesController::class)->name ('articles ' );
129144
130145 Route::name ('articles. ' )->group (function () {
You can’t perform that action at this time.
0 commit comments