Skip to content

Comments

Fix code placed after <body>#771

Merged
MakisH merged 2 commits intoprecice:masterfrom
praaatap:fix/analytics-invalid-placement
Feb 23, 2026
Merged

Fix code placed after <body>#771
MakisH merged 2 commits intoprecice:masterfrom
praaatap:fix/analytics-invalid-placement

Conversation

@praaatap
Copy link
Contributor

Description

This PR fixes invalid HTML structure in _layouts/default.html and _layouts/landing_page.html.

Previously, the google_analytics.html include block was placed after the closing </body> tag (between </body> and </html>). This is invalid HTML, as all visible and functional blocks (like analytics scripts) must be contained within the <body> or <head> tags.

This PR moves the block directly above the closing </body> tag to ensure the output is valid HTML and conforms to standard web best practices.

Fixes

Fixes #<ISSUE_NUMBER_HERE>
(If you did not make an issue for this, you can just delete this line).

Copy link
Member

@MakisH MakisH left a comment

Choose a reason for hiding this comment

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

Thanks! Does not have any effect, since we don't use Google Analytics, but this looked anyway wrong.

Copy link
Member

Choose a reason for hiding this comment

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

I would avoid touching the formatting in unrelated files, as this might introduce unnecessary conflicts. In any case, this is only one file in this PR, and the formatting changes make sense, so that's fine.

@MakisH MakisH changed the title fix(ui): place google analytics include inside body tag for valid HTML Fix code placed after <body> Feb 23, 2026
@MakisH MakisH merged commit 93cd36d into precice:master Feb 23, 2026
2 checks passed
@MakisH MakisH added GSoC Contributed in the context of the Google Summer of Code technical Technical issues on the website labels Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GSoC Contributed in the context of the Google Summer of Code technical Technical issues on the website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants