Changing skins from the chooser redirects unpredictably.

Description

To replicate

  1. Log in

  2. navigate to a work https://archiveofourown.org/works/21911809

  3. scroll to skin chooser in the footer

  4. switch to Reversi

  5. Be redirected to Reversi's Skins page at https://archiveofourown.org/skins/929

  6. replicate 2-5 with LVD, Snow Blue - redirect to skin's particular /skins/###

  7. replicate 2-5 with Default - get redirected to site's top level.

Step 5 should be redirect back to the referer, or if we can't do that because we don't have the referer, redirect to the home page. https://github.com/otwcode/otwarchive/blob/6e02a48c36e3167f74fbb68d142fee80c0d77b93/app/controllers/skins_controller.rb#L120-L128

Environment

None

Assignee

Unassigned

Reporter

CJ Record

Roadmap

Skins

Priority

Medium

Affects versions

Fix versions

None

Components

None

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9
Configure