Skip to content

docs: set <link rel="canonical" />#51131

Merged
alalazo merged 1 commit intodevelopfrom
hs/docs/canonical-url
Aug 9, 2025
Merged

docs: set <link rel="canonical" />#51131
alalazo merged 1 commit intodevelopfrom
hs/docs/canonical-url

Conversation

@haampie
Copy link
Copy Markdown
Member

@haampie haampie commented Aug 9, 2025

GoogleBot is crawling pages with ?highlight=... query params as
separate pages.

Avoid that by using

<link rel="canonical" href="[url without query params]" />

GoogleBot is crawling pages with `?highlight=...` query params as
separate pages.

Avoid that by using

```html
<link rel="canonical" href="<url without query params>" />
```

Signed-off-by: Harmen Stoppels <[email protected]>
@haampie haampie force-pushed the hs/docs/canonical-url branch from 775427a to 496889c Compare August 9, 2025 06:51
@alalazo alalazo self-assigned this Aug 9, 2025
@alalazo alalazo enabled auto-merge (squash) August 9, 2025 07:17
@alalazo alalazo merged commit 2c32432 into develop Aug 9, 2025
31 checks passed
@alalazo alalazo deleted the hs/docs/canonical-url branch August 9, 2025 07:47
@haampie haampie added v1.0.2 PRs / Bug fixes to backport for v1.0.2 v1.0.1 PRs to backport for v1.0.1 and removed v1.0.2 PRs / Bug fixes to backport for v1.0.2 labels Aug 11, 2025
haampie added a commit that referenced this pull request Aug 11, 2025
GoogleBot is crawling pages with `?highlight=...` query params as
separate pages.

Avoid that by using

```html
<link rel="canonical" href="<url without query params>" />
```

Signed-off-by: Harmen Stoppels <[email protected]>
@haampie haampie mentioned this pull request Aug 11, 2025
29 tasks
alecbcs pushed a commit that referenced this pull request Aug 12, 2025
GoogleBot is crawling pages with `?highlight=...` query params as
separate pages.

Avoid that by using

```html
<link rel="canonical" href="<url without query params>" />
```

Signed-off-by: Harmen Stoppels <[email protected]>
alstar555 pushed a commit to alstar555/spack that referenced this pull request Aug 27, 2025
GoogleBot is crawling pages with `?highlight=...` query params as
separate pages.

Avoid that by using

```html
<link rel="canonical" href="<url without query params>" />
```

Signed-off-by: Harmen Stoppels <[email protected]>
Signed-off-by: Angelica Loshak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1.0.1 PRs to backport for v1.0.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants