DEV: Redirect `/theme-tests` to `/theme-qunit` (#28617)

The name `/theme-qunit` comes from the days when we served the main qunit tests at `/qunit`. Nowadays, with ember-cli, the core tests are on `/tests`, so `/theme-tests` makes more sense, and might be what people think to try.

Changing the name would be a fairly large refactor. But we can add a redirect very easily.
This commit is contained in:
David Taylor 2024-08-29 09:48:47 +01:00 committed by GitHub
parent bfad9a7170
commit c760b30190
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1614,6 +1614,7 @@ Discourse::Application.routes.draw do
post "/safe-mode" => "safe_mode#enter", :as => "safe_mode_enter"
get "/theme-qunit" => "qunit#theme"
get "/theme-tests", to: redirect("/theme-qunit")
# This is a special route that is used when theme QUnit tests are run through testem which appends a testem_id to the
# path. Unfortunately, testem's proxy support does not allow us to easily remove this from the path, so we have to