Sead Silajdzic
Sead Silajdzic

Reputation: 1

Laravel vapor returns message:null when click on browser back button

I recently started using Laravel vapor as my server and I've realized that when I click on the browser back (history) button, I get this weird message:

Image of the returned message

Did anyone have this issue?

I have no idea which part of the code to share with you that would be relevant for this issue since I didn't find any similar problem on the internet.

If you need something, comment and I will edit the question.

Upvotes: -1

Views: 75

Answers (1)

Nicklas Kevin Frank
Nicklas Kevin Frank

Reputation: 6337

This is most likely due to you having a route with the same path for displaying and getting JSON data. The browser may cache the JSON version and show that when hitting the back button.

If you could share the relevant routes that match, I can go into more detail.

Upvotes: 0

Related Questions