feat: add Trunçgil Akademi page template and automated seeder for course offerings
This commit is contained in:
@@ -78,21 +78,7 @@ class PageController extends Controller
|
||||
{
|
||||
$settings = $this->getSettings();
|
||||
|
||||
// 3a. Akademi Sayfası Yönlendirmeleri
|
||||
if ($slug === 'truncgil-akademi') {
|
||||
$host = request()->getHost();
|
||||
$path = request()->path();
|
||||
|
||||
// Eğer ana domainden geliyorsa -> Subdomain'e yönlendir
|
||||
if ($host !== 'akademi.truncgil.com.tr') {
|
||||
return redirect()->to('https://akademi.truncgil.com.tr/', 301);
|
||||
}
|
||||
|
||||
// Eğer subdoman'de ama slug ile geliyorsa (/truncgil-akademi) -> Ana dizine yönlendir (/)
|
||||
if ($host === 'akademi.truncgil.com.tr' && $path !== '/') {
|
||||
return redirect()->to('https://akademi.truncgil.com.tr/', 301);
|
||||
}
|
||||
}
|
||||
// Redirection logic disabled for rendering the page locally on main domain.
|
||||
|
||||
// 1. Statik View Kontrolü
|
||||
if (view()->exists("templates.$slug")) {
|
||||
|
||||
Reference in New Issue
Block a user