Skip to content

Clean up unused problem URL parameters. - #3273

Open
drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:problem-url-param-cleanup
Open

drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:problem-url-param-cleanup

Conversation

@drgrice1

@drgrice1 drgrice1 commented Nov 8, 2026

Copy link
Copy Markdown
Member

The showOldAnswers parameter was propagated in site navigation links, problem navigation links, and a hidden field on the problem page, but is never used when rendering a problem. That propagation is removed.

The generateURLs method copied the showCorrectAnswers, showHints, showOldAnswers, and showSolutions parameters into the emailable URL. Only showCorrectAnswers affects rendering, and only via the instructor-only "Show Correct Answers" button. On the feedback page the values were the display permissions, so showCorrectAnswers=1 was added after the answer date and the instructor got the correct-answers-only view instead of what the student saw. None of these are added anymore.

The `showOldAnswers` parameter was propagated in site navigation links, problem
navigation links, and a hidden field on the problem page, but is never used when
rendering a problem. That propagation is removed.

The `generateURLs` method copied the `showCorrectAnswers`, `showHints`,
`showOldAnswers`, and `showSolutions` parameters into the emailable URL. Only
`showCorrectAnswers` affects rendering, and only via the instructor-only "Show
Correct Answers" button. On the feedback page the values were the display
permissions, so `showCorrectAnswers=1` was added after the answer date and the
instructor got the correct-answers-only view instead of what the student saw.
None of these are added anymore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@drgrice1
drgrice1 force-pushed the problem-url-param-cleanup branch from a6e9ade to fe76ad9 Compare November 9, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant