kylephillips / favorites

Simple and flexible favorite buttons for any WordPress post type.
https://favoriteposts.com
224 stars 85 forks source link

Save favorite after registration or login #124

Open graylaurenm opened 5 years ago

graylaurenm commented 5 years ago

Goal: After registering or logging in, we'd like the post that the user attempted to save to be automatically favorited.

Steps to replicate: (On https://dinnerthendessert.com – not one I'm working on, just a live site I've replicated the issue on.)

  1. Save a recipe
  2. Recipe not saved; trigger login form
  3. Login
  4. Page refreshes; navigate to post and recipe not in saved state

What is happening: After logging in, the recipe I've attempted to save has not be added to my list of favorites.

What I expected to happen: Post added to my list of favorites after successful registration/login, without having to re-navigate to, and re-save, the post.

Device & browser I'm you using: Tested in Chrome, Version 76.0.3809.100 (Official Build) (64-bit)