[#1663] Add additional routes for /help/house_rules
#1671
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relevant issue(s)
#1663
What does this do?
This adds a new route which allows for the
/help/house_rules
page to be accessed using different paths.Why was this needed?
Chat on #1663, and predecessors, has raised the issue of language.
Allowing more possibilities allows us to ensure that messages to users are easy to understand, as "house rules" may not mean something to many.
Implementation notes
The basic implementation isn't anything especially complex - it is a redirect to
/help/house_rules
.We match
:help_house_rules_resolve
against a constraint. The following are accepted values:conditions_of_use
site_rules
terms_and_conditions
terms_of_service
terms_of_use
the_legal_stuff
the_rules
This doesn't change the existing route for
/help/house_rules
, as whilst it is trivial to include that here, it is a bit less elegant 1.Screenshots
N/A
Notes to reviewer
I've tested this on a sandbox install (running
0.43.0.0
/ rails7.0.4.3
/ ruby3.2.1
) and didn't encounter any problems.Footnotes
not that this is elegant… but, it prevents a slight nuisance in regard to how we render the sidebar (e.g. not rendering a clickable 'house rules' link when we don't have to). ↩