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 = {