Tab title doesn't update to <Head> <title> when navigating to a page with another <title>

Open
#3,916 0 comments 0 reactions 0 assignees View on GitHub

@1AbdullahButt is already working on this.

Since Nov 8, 2026.

  • #3919 by @1AbdullahButt — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
deno, typescript
Domain
frontend, web-dev

Research direction

Start by locating how Fresh handles <Head> and updates the document title during client side navigation. Reproduce the reported case with a page whose SVG contains a later <title> element, then compare it with the workaround that moves <Head> to the end of the JSX. Done means the tab title updates to the <Head> title after navigation in either ordering.

Written by the indexing model from the issue text.

Description

The tab title doesn't change (at all) when navigating to a page that has <title> if the new page contains another <title> tag.

It only happens if the 2nd <title> tag is further down the DOM tree than .

I noticed this when adding a <title> to an

Workaround:
Moving to the bottom of the page's JSX so the <title> tag is the last one found in the DOM tree.

Dominant language
TypeScript
Stars
13.8k
Forks
757
Avg merge
3m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from freshframework/fresh

All issues in freshframework/fresh

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.