Skip to content

Add Google site verification 5s redirect also link to new site#10

Merged
brycepeever merged 2 commits intopragmaticpapers:mainfrom
digitalgroundgame:new-site-linking
Jan 10, 2026
Merged

Add Google site verification 5s redirect also link to new site#10
brycepeever merged 2 commits intopragmaticpapers:mainfrom
digitalgroundgame:new-site-linking

Conversation

@linkion
Copy link
Copy Markdown
Contributor

@linkion linkion commented Jan 10, 2026

Context

Adds site verification code for Google Search console so I can manually tell google that we have a new website through the console.

Adds a <link> with rel="canonical" to suggest to site indexers that we have another preferred website.

Adds a meta tag to redirect after 5 seconds

Test Plan

After pushing to upstream, visit https://pragmaticpapers.github.io/, should be redirected after 5 seconds.

We will have to wait for Google before we see our site at the top of search results

Copilot AI review requested due to automatic review settings January 10, 2026 20:44
Copy link
Copy Markdown

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 adds Google Search Console verification and implements a redirect mechanism from the old GitHub Pages site to the new pragmaticpapers.com domain. The changes support migrating users and search engine indexing to the new site.

Changes:

  • Added Google site verification meta tag for Search Console
  • Added 5-second redirect to the new site
  • Added canonical link to indicate the preferred URL for search engines

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

Comment thread index.html Outdated
Comment on lines +66 to +67
<meta http-equiv="refresh" content="5; URL=pragmaticpapers.com" />
<link rel="canonical" href="pragmaticpapers.com" />
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

The URL in the refresh meta tag is missing the protocol (https://). Without the protocol, browsers may interpret this as a relative path rather than an absolute URL, which could cause the redirect to fail or redirect to an incorrect location.

Suggested change
<meta http-equiv="refresh" content="5; URL=pragmaticpapers.com" />
<link rel="canonical" href="pragmaticpapers.com" />
<meta http-equiv="refresh" content="5; URL=https://pragmaticpapers.com/" />
<link rel="canonical" href="https://pragmaticpapers.com/" />

Copilot uses AI. Check for mistakes.
Comment thread index.html Outdated
content="fmJMGQNzt7v5bPW9ZxqzFdn1wHu9EJT4W00N3wp1pZs"
/>
<meta http-equiv="refresh" content="5; URL=pragmaticpapers.com" />
<link rel="canonical" href="pragmaticpapers.com" />
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

The canonical link href is missing the protocol (https://). According to HTML specifications and SEO best practices, canonical URLs should be absolute URLs including the protocol. Without it, search engines may not correctly interpret the canonical URL.

Suggested change
<link rel="canonical" href="pragmaticpapers.com" />
<link rel="canonical" href="https://pragmaticpapers.com/" />

Copilot uses AI. Check for mistakes.
@brycepeever brycepeever merged commit 117a454 into pragmaticpapers:main Jan 10, 2026
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