Skip to content
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

Seo and multilanguages #50

Open
Stonne opened this issue Sep 10, 2023 · 3 comments
Open

Seo and multilanguages #50

Stonne opened this issue Sep 10, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Stonne
Copy link

Stonne commented Sep 10, 2023

It seems to me that the google seo has a problem with the pages when using the LanguageContainerService.
I get duplicate pages issues. Is there a special way to add the


@languageContainer.Keys["seotitle"]


<meta name="description" [email protected]["seoindex"]>
<meta name="keywords" [email protected]["seoindexkey"]>
?

When i do a search on the issue the solutions semme to be to add the language to the url.. Anyone has a solution ?
Thanks already

@aksoftware98 aksoftware98 self-assigned this Sep 22, 2023
@aksoftware98
Copy link
Owner

He Stonne,

Thank you so much for using the MultiLanguages library, and sorry for the delayed response!

Can you provide more context about the problem? What do you see on Google exactly, and what Blazor hosting model you are using (WebAssembly or Server)?

@Stonne
Copy link
Author

Stonne commented Sep 26, 2023

Blazor server. I'm a little of from wasm beacause of the latency. I allways get the comment that it takes too long to load...
About my issue. I presume the error is with the meta title in my pages. I think the google search console does not see the difference in languages of my pages (this is a guess) . I noticed when you search for this issue the proposed solution allways comes down to make an url like :
www.mysite/en/landing.razor or www.mysite/fr/landing.razor I tried to do that but I can not achieve this...

@aksoftware98
Copy link
Owner

Okay, noted, I will investigate the same issue based on your description and the code snippets you provided at the top and then I will provide a fix or improve the docs to mention how to deal with localized data for the package.

Thank you so much for opening this issue and mentioning it

@aksoftware98 aksoftware98 added the bug Something isn't working label Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants