Browse Source

路由修改

moshaorui 4 weeks ago
parent
commit
547f38414d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      routes/web.php

+ 1 - 1
routes/web.php

@@ -40,7 +40,7 @@ if ($host == 'internal-demo-site.mietubl.com.cn') {
         } else {
             $page = SitePage::where('status', '1')->where('dist_id', getDistId())->where('slug', $slug)->first();
             if ($page) {
-                return redirect()->route('page.detail', ['id' => $page->id]);
+                return redirect()->route('page.detail', ['slug' => $slug]);
             }
         }
     });