I used a tutorial online (don’t remember where) to build a infinite scroll channel entries page that uses a snippet to load in the paginated content and it works really well. It took me a great deal of time getting it to work properly but it works great now.
Also, on my site I use a neat little extension called Twomile Login Redirect which allows me users to go back to the page they were on when they login without seeing the stock EE “You are now logged in” message.
The problem I’m having now is that if a user scrolls down on the page, it loads more entries. If the user then goes to login, they get redirected to my ajax template. which has no context to it because it just loads the entries in and nothing else.
I’ve tried adding in some {if} statements in the snippet to detect and redirect but those didn’t work, I also tried some htaccess rules and they didn’t work either.
If anyone has any ideas other than removing this extension that would be great. I really like this extension I have and would like to keep it but need to find a workaround to prevent this edge case.
Any ideas would be greatly appreciated! Thanks!