From 62a7326b5f449bc1d175001a535923a901fc52dd Mon Sep 17 00:00:00 2001 From: Ian Kerins Date: Sun, 7 Jan 2024 23:04:39 -0500 Subject: [PATCH] Flip the default for OpenGrok automatic redirects to `true` --- .changeset/bright-tools-argue.md | 5 +++++ src/lib/preferences.ts | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/bright-tools-argue.md diff --git a/.changeset/bright-tools-argue.md b/.changeset/bright-tools-argue.md new file mode 100644 index 0000000..ddd5c32 --- /dev/null +++ b/.changeset/bright-tools-argue.md @@ -0,0 +1,5 @@ +--- +"neogrok": minor +--- + +Flip the default for OpenGrok automatic redirects to `true` diff --git a/src/lib/preferences.ts b/src/lib/preferences.ts index b090407..ab6d83b 100644 --- a/src/lib/preferences.ts +++ b/src/lib/preferences.ts @@ -23,13 +23,13 @@ const fileMatchesCutoffFromString = (x: string) => { }; /** - * Whether the user has opted to bypass explanatory OpenGrok compatibility pages - * by way of instantly redirecting requests for OpenGrok compatibility URLs to - * their neogrok equivalents where possible. + * Whether to bypass explanatory OpenGrok compatibility pages by way of + * instantly redirecting requests for OpenGrok compatibility URLs to their + * neogrok equivalents where possible. */ export type OpenGrokInstantRedirect = boolean; const openGrokInstantRedirectKey = "openGrokInstantRedirect"; -const defaultOpenGrokInstantRedirect = false; +const defaultOpenGrokInstantRedirect = true; const openGrokInstantRedirectFromString = (x: string) => x === "true"; export type Preferences = {