Merge branch 'main' of gitea.neatcn.com:gouki/laralog
Keep media-library covers while adopting sablog /show-{id}.shtml canonical URLs.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -126,7 +126,7 @@ class Post extends Model implements HasMedia
|
||||
|
||||
public function getUrlAttribute(): string
|
||||
{
|
||||
return route('posts.show', $this->slug ?? $this->id);
|
||||
return route('posts.show', $this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user