To fix the problem, instead of redirect the items here, we are going to.
We turn to a Jason responds by using by returning to Jason object redirect.
And because we want to go back to the.
Items page, which is their interest.
So we copy this one.
And here.
So now if we go back to the index item page.
So if we go back to the item detail page and then we're going to get a response.
And then we treat this the jury, some object.
And then.
We've got this data and then we try to download the data now for us, we go to add the new item and
then we open the developer produce.
And then we go to the toilet now, you see it has the data, our items, so now we are going to use
this data and then redirect to the home page.
So we type window bult location where is equal to the data we direct.
Now, if we go back to the home page and add the items again, we had a phone and then we type one thousand
and at the items now we go to the detail page and then we press delete.
Now you go to the items.
This is because there is something wrong here because we should not use this.
This is for posting the new items we should use to get items or even just for us.
So we use to get items and then we try to add the phone again.
Now we go to the detail page and press delete.
Now you can see it go to the homepage and you can see there are no items here, so refresh the page
and also update the number of items.