aaronliunumber2 / foundrymissions

Website to host a database of foundry missions for Star Trek Online
http://www.foundrymissions.com
0 stars 0 forks source link

Random button picks up unpublished missions #2

Closed RogueEnterprise closed 8 years ago

RogueEnterprise commented 8 years ago

The random button in the site header picks up unpublished missions and gives an error when they are unable to be displayed.

Steps to reproduce:

  1. Go to the main page (currently http://fmv001.azurewebsites.net/)
  2. Select Random until you hit a mission e.g. "The Great Escape" that throws error "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

Result: User receives above error (likely because mission is unpublished" Expected: Random button does not send users to pages for unpublished missions

aaronliunumber2 commented 8 years ago

It was filtering by "not removed" instead of "published"