Skip to content

Conversation

@loic-sharma
Copy link
Member

@loic-sharma loic-sharma commented Nov 4, 2025

I keep forgetting if the design doc template is flutter.dev/to/template or flutter.dev/go/template. This supports both through daisy chaining.

@loic-sharma loic-sharma requested review from a team and sfshaza2 as code owners November 4, 2025 23:28
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @loic-sharma, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new redirect rule to enhance user convenience. It addresses the common issue of users forgetting the exact path for the design document template by ensuring that both /to/template and /go/template effectively lead to the correct destination. This change simplifies navigation and access to important documentation.

Highlights

  • New Redirect Rule: A new 301 redirect has been added in firebase.json to forward requests from /to/template to https://flutter.dev/go/template.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @loic-sharma, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new redirect configuration within firebase.json to enhance accessibility for the design document template. By establishing /to/template as an additional shortlink that points to the existing flutter.dev/go/template, the change aims to simplify access and reduce cognitive load for users who might forget the precise shortlink.

Highlights

  • New Redirect Rule: A new 301 redirect rule has been added to firebase.json.
  • Template Shortlink: The shortlink /to/template now redirects to https://flutter.dev/go/template, providing an alternative access path for the design doc template.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new redirect for /to/template to make it easier to find the design doc template. The change is straightforward and correctly placed. I've suggested a small improvement to use a relative path for the destination to avoid hardcoding the domain, which improves maintainability.

{ "source": "/to/state-management-sample", "destination": "/data-and-backend/state-mgmt/simple", "type": 301 },
{ "source": "/to/switch-flutter-version", "destination": "/install/upgrade#switch-to-a-specific-flutter-version", "type": 301 },
{ "source": "/to/team-infra", "destination": "https://github.com/flutter/flutter/blob/main/docs/triage/Infra-Triage.md", "type": 301 },
{ "source": "/to/template", "destination": "https://flutter.dev/go/template", "type": 301 },
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To avoid hardcoding the domain and for consistency with other internal redirects, it's better to use a relative path for the destination. This still achieves the desired daisy-chaining but is more maintainable.

Suggested change
{ "source": "/to/template", "destination": "https://flutter.dev/go/template", "type": 301 },
{ "source": "/to/template", "destination": "/go/template", "type": 301 },

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new redirect for /to/template to /go/template, providing an alternative short link for the design doc template. The change in firebase.json is straightforward, correct, and maintains the alphabetical order of the redirects. The use of daisy-chaining is consistent with existing patterns in the file and is a reasonable approach to ensure that /go/template remains the canonical source. I find no issues with this implementation.

@flutter-website-bot
Copy link
Collaborator

Visit the preview URL for this PR (updated for commit e4fd088):

https://flutter-docs-prod--pr12635-loic-sharma-patch-1-7ahd7k4a.web.app

@parlough parlough merged commit 414b916 into main Nov 5, 2025
9 checks passed
@parlough parlough deleted the loic-sharma-patch-1 branch November 5, 2025 12:15
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.

3 participants