Waavi/save-url

Redirecting to random asset

Closed this issue · 1 comments

Hello,

This seems to be redirecting to a random asset rather than a page?

So for example, I load the homepage which loads in images.

I log in, which uses redirect()->toSavedUrl() and it redirects me to the last asset loaded on the page.

Is there a way I can exclude images from being saved?

Thanks

I think this could be solved by adding a check for any static filetypes here:

return !$this->isRunningInConsole && !$request->attributes->has('save-url.do-not-save') && is_null($request->user()) && $request->isMethod('GET') && !$request->ajax();

And not saving them?

Seems to be a bug in the system.

Thanks for the package though, great work, 👍