-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected comma in title #408
Comments
I am seeing both stray commas ( I've worked around it by using the |
@corydeppen This problem seems to have been fixed a long time ago see pr #351. Merged in to the master by @jamsea, The major problem here is that there has not been a new release/npm/maintenance for about a year (#391). So you are probably using the latest version from npm (https://codesandbox.io/s/8n3z8054k2) from before the possible fix was merged to the master... Could you possibly create a test against the master? Also possible issue template requesting used version? |
Yes. I'll write myself a note and try to do it tomorrow morning.
I'll also work on this, I don't see why we can't publish a new build. I'll talk with @cwelch5 in the AM. |
Any updates? I'm still experiencing this issue. react-helmet@^5.2.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/react-helmet/-/react-helmet-5.2.0.tgz#a81811df21313a6d55c5f058c4aeba5d6f3d97a7"
integrity sha1-qBgR3yExOm1VxfBYxK66XW89l6c=
dependencies:
deep-equal "^1.0.1"
object-assign "^4.1.1"
prop-types "^15.5.4"
react-side-effect "^1.1.0" Code: <Helmet {...helmet}>
<title>{username + " - " + ujian} Ujian</title>
</Helmet> result: <title>i16011 - AIF000000, Ujian</title> |
Also still encountering this with latest version. Minimal repro is a handful of lines: import React from "react";
import ReactDOM from "react-dom";
import Helmet from "react-helmet";
function App() {
const string = "string";
return (
<div>
<Helmet titleTemplate="%s - template">
<title>'{string}' not string</title>
</Helmet>
butts
</div>
);
} https://codesandbox.io/s/nbolv I poked through the code to see if I could diagnose this, but I'm not familiar with |
Nevermind! I hunted it down. |
As a temp solution, replacing <Helmet>
<title>{`${summary.name} collection`}</title>
</Helmet> |
If this has been solved, why has it not been resolved....? #391 |
I had updated the version to 6.1.0 and the issue is resolved |
Similar to #286, I continue to see a comma in the title of pages of my Gatsby app and seems to only be a problem if there's an expression in the
title
. A reproduction of this issue can be seen in the following branch.https://github.com/corydeppen/gatsby-8655-example/tree/react-helmet-comma
The text was updated successfully, but these errors were encountered: