Utopian Reviews ― Links to Older Questionnaire Results Are Broken

This Utopian contribution describes an issue introduced when https://review.utopian.io was updated to parse questionnaire id's in the URL differently.

pexels-photo-270348.jpeg
CC0 from Pexels/Pixabay

Project Information

Expected behavior

When a user follows a link in a Utopian moderator's comment on a contribution the user is shown the questionnaire and answers for the post.

image.png

Actual behavior

If the link is an older one, posted prior to route format changes at commit 4733c3, the user will be shown a blank questionaire.

How to reproduce

Follow this link which was originally posted with this moderator's comment, and should show completed questionnaire 313323.

https://review.utopian.io/result/5/313323

Alternatively, use any similar link posted in a moderator's comment prior to the commit mentioned above.

*Browser/App/OS/Version: Expected to behave the same on any browser/OS. I used Google Chrome OS
Version 70.0.3538.110 (Official Build) (64-bit)

Why this happens ― one way to fix

The routing for the site was changed so that going forward numerals in the id for the questionaire should be delimited by -. However, links posted before this change will always point to the old format.

This could be fixed by honoring the old format as a route parameter for id's below a certain threshold, which in turn forwards/redirects to a url with the new format.

Report(s) To Maintainer

  • This issue has been opened in the repository here
  • The problem was mentioned to the help team on discord

image.png

GitHub Account

@tdre on the Steem blockchain

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
8 Comments