Skip to content

fix: Fixing the index page#942

Merged
ehsavoie merged 2 commits into
a2aproject:mainfrom
ehsavoie:site_small_fixes
Jun 19, 2026
Merged

fix: Fixing the index page#942
ehsavoie merged 2 commits into
a2aproject:mainfrom
ehsavoie:site_small_fixes

Conversation

@ehsavoie

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>

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

Copy link
Copy Markdown
Contributor

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 converts absolute links to relative links in the documentation and replaces a markdown code block with HTML pre/code tags, accompanied by a CSS adjustment to left-align preformatted text. The review feedback recommends appending trailing slashes to the relative URLs to avoid unnecessary 301 redirects and points out an absolute path for the logo image that might fail to load if hosted on a subpath.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread docs/content/index.html
Comment on lines +16 to +17
<a href="server" class="btn btn-primary">Server Guide <i class="fa-solid fa-arrow-right"></i></a>
<a href="client" class="btn btn-secondary">Client Guide <i class="fa-solid fa-arrow-right"></i></a>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

When using relative paths for clean URLs in static sites, it is best practice to include a trailing slash (e.g., server/ instead of server). This prevents the web server from performing an unnecessary 301 redirect to append the trailing slash when resolving the directory.

Additionally, please note that the logo path on line 12 (logo="/images/a2a-java-sdk.png") still uses an absolute path. If this site is hosted on a subpath, the logo image will fail to load. Consider updating it to a relative path as well.

Suggested change
<a href="server" class="btn btn-primary">Server Guide <i class="fa-solid fa-arrow-right"></i></a>
<a href="client" class="btn btn-secondary">Client Guide <i class="fa-solid fa-arrow-right"></i></a>
<a href="server/" class="btn btn-primary">Server Guide <i class="fa-solid fa-arrow-right"></i></a>
<a href="client/" class="btn btn-secondary">Client Guide <i class="fa-solid fa-arrow-right"></i></a>

Comment thread docs/content/index.html
&lt;/dependency&gt;</code></pre>

<p>See the <a href="/server">Server Guide</a> and <a href="/client">Client Guide</a> for full setup instructions, or browse <a href="/community">Community Articles</a> for tutorials and examples.</p>
<p>See the <a href="server">Server Guide</a> and <a href="client">Client Guide</a> for full setup instructions, or browse <a href="community">Community Articles</a> for tutorials and examples.</p>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

For consistency and to avoid unnecessary 301 redirects, use trailing slashes for these relative links as well.

Suggested change
<p>See the <a href="server">Server Guide</a> and <a href="client">Client Guide</a> for full setup instructions, or browse <a href="community">Community Articles</a> for tutorials and examples.</p>
<p>See the <a href="server/">Server Guide</a> and <a href="client/">Client Guide</a> for full setup instructions, or browse <a href="community/">Community Articles</a> for tutorials and examples.</p>

@ehsavoie ehsavoie merged commit 5a0361a into a2aproject:main Jun 19, 2026
1 check passed
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.

1 participant