Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change dark mode toggle to use a return path as a request argument rather than using the Referer header. Fixes #76 #77

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

kura
Copy link
Contributor

@kura kura commented Sep 19, 2022

Summary

Change dark mode toggle to use a return path as a request argument rather than using the Referer header.
Fixes #76

Details

Really simple change, it'll add a return path to the toggle-darktheme route as a query string, if one isn't provided it will default to directing the user to / after toggling.

Checks

  • Tested changes

@kura kura changed the title Change dark mode toggle to use a return path as a request argument rather than using the Referer headed. Fixes #76 Change dark mode toggle to use a return path as a request argument rather than using the Referer header. Fixes #76 Sep 19, 2022
@Linbreux
Copy link
Owner

perfect, thanks!

@Linbreux Linbreux merged commit 04482d3 into Linbreux:main Sep 20, 2022
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.

Toggling darkmode results in an error
2 participants