refactor(routes): canonical URLs now match sablog format exactly
- /show-{id}.shtml (comments page: /show-{id}-{page}.shtml)
- /category-{cid}.shtml / /category-{cid}-{page}.shtml
- /archives-{YYYYMM}.shtml / /archives-{YYYYMM}-{page}.shtml
- /tag/{name}, /tagslist.shtml, /index-{page}.shtml
- slug 时代的 /posts/{slug} 等旧格式全部 301 到 sablog 格式
This commit is contained in:
@@ -81,7 +81,7 @@ class MembershipController
|
||||
// 已能读付费内容(会员 / 作者 / 已解锁):直接查看文章,避免重复支付。
|
||||
// 注意:付费块文章的整篇是公开的,不能用 canReadPost 判断(否则永远"已有权限")
|
||||
if ($this->service->canReadPaidContent($user, $post)) {
|
||||
return redirect()->route('posts.show', $post->slug ?? $post->id);
|
||||
return redirect()->route('posts.show', $post->id);
|
||||
}
|
||||
|
||||
// 单篇付费解锁:创建一笔定向支付
|
||||
|
||||
Reference in New Issue
Block a user