Skip to content

Preserve query parameters when changing skin (#252) - #515

Open
jimmeak wants to merge 2 commits into
dracidoupe:masterfrom
jimmeak:fix/issue-252-preserve-skin-query-parameters
Open

Preserve query parameters when changing skin (#252)#515
jimmeak wants to merge 2 commits into
dracidoupe:masterfrom
jimmeak:fix/issue-252-preserve-skin-query-parameters

Conversation

@jimmeak

@jimmeak jimmeak commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Changing the skin could lose some query parameters from the current page, so you could end up somewhere else than expected. This URL-encodes the redirect value before putting it into the skin links.

I changed both menu variants and added a test with multiple query parameters. Tests, Ruff and the GitHub checks are green.

Fixes #252.

jimmeak added 2 commits July 14, 2026 02:22
URL-encode the nested redirect target in skin-switch links so pages with multiple query parameters return to the complete original URL. Add an authenticated rendering regression test.\n\nFixes dracidoupe#252.
@jimmeak
jimmeak marked this pull request as ready for review July 14, 2026 08:20
@jimmeak
jimmeak requested a review from Almad July 14, 2026 08:20

@Almad Almad left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Almad

Almad commented Jul 18, 2026

Copy link
Copy Markdown
Member

oh please just merge master

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.

Changing skin doesn't preserve current page on pages with query parameters

2 participants