Skip to content

Fix trailing slash redirects causing Google Search indexing issues#70

Merged
HugoGresse merged 1 commit intomainfrom
copilot/fix-redirection-issue
Apr 21, 2026
Merged

Fix trailing slash redirects causing Google Search indexing issues#70
HugoGresse merged 1 commit intomainfrom
copilot/fix-redirection-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

Pages indexed by Google without a trailing slash (e.g. /sessions/<id>) were being 301-redirected to the trailing-slash form by Firebase Hosting, causing redirect churn in Google Search Console.

Change

  • Added "cleanUrls": true to firebase.json hosting config
"hosting": {
    "public": "dist",
    "cleanUrls": true,
    ...
}

Firebase will now serve index.html files directly at their clean URLs without redirecting. Requests to the trailing-slash form will redirect to the canonical clean URL instead.

@github-actions
Copy link
Copy Markdown

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

https://sunnytechwebsite--pr70-copilot-fix-redirect-g25uoyrt.web.app

(expires Tue, 28 Apr 2026 10:05:16 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: b96ac7ab85879442bb94dc448b41aeca0f34d16c

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Firebase Hosting configuration to prevent unwanted trailing-slash redirect behavior that was causing redirect churn for Google-indexed URLs (notably on session pages).

Changes:

  • Enabled Firebase Hosting cleanUrls to serve index.html content at the non-trailing-slash URL form without redirecting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HugoGresse HugoGresse merged commit 652caa8 into main Apr 21, 2026
7 checks passed
@HugoGresse HugoGresse deleted the copilot/fix-redirection-issue branch April 21, 2026 10:07
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