This commit is contained in:
Benjamin Takats
2023-01-15 21:27:40 +01:00
parent b18da8b3a1
commit 75377126d2

View File

@@ -43,7 +43,7 @@ class CommentBookCase extends Component
->addMedia($this->photo) ->addMedia($this->photo)
->toMediaCollection('images'); ->toMediaCollection('images');
return to_route('bookCases.comment.bookcase', ['bookCase' => $this->bookCase->id]); return to_route('bookCases.comment.bookcase', ['country' => $this->country, 'bookCase' => $this->bookCase->id]);
} }
public function deletePhoto($id) public function deletePhoto($id)
@@ -51,7 +51,7 @@ class CommentBookCase extends Component
Media::find($id) Media::find($id)
->delete(); ->delete();
return to_route('bookCases.comment.bookcase', ['bookCase' => $this->bookCase->id]); return to_route('bookCases.comment.bookcase', ['country' => $this->country, 'bookCase' => $this->bookCase->id]);
} }
protected function url_to_absolute($url) protected function url_to_absolute($url)