NoelDeMartin / umai

Offline-first Recipes Manager
https://umai.noeldemartin.com
GNU General Public License v3.0
33 stars 5 forks source link

"Back to cookbook" navigates to authorization page #14

Closed angelo-v closed 10 months ago

angelo-v commented 10 months ago
  1. I visit Umai and sign in
  2. Go to a recipe page
  3. Refresh the page (F5)
  4. -> I land on the authorization page of my CSS instance and authorize again
  5. I am back on the recipe page
  6. I click "Back to cookbook"
  7. Instead of going back to the cookbook I am back on the CSS authorization page
NoelDeMartin commented 10 months ago

Thanks for reporting, I've also noticed this myself but I hadn't looked into it.

It seems like the back functionality is doing a browser back rather than checking if the previous page was the cookbook. Initially I followed this approach because I didn't want to add new navigation entries to the history for going back, but maybe it'd be better to just do a normal "forward" navigation back to the cookbook.

NoelDeMartin commented 10 months ago

Fixed in v0.1.6.