Comments (8)
from toolbelt.blazor.headelement.
but on an SEO check, my page descriptions stopped working.
This library should work fine in the environment that you told me about in this issue.
Could you tell me about more details what was happened?
For example,
- Was it no error but the page descriptions were not rendered as you expected? If that is so, could you tell me what was rendered as the page descriptions?
- Did it show an error message or returned an HTTP 500 Internal server error something like an unhandled exception? If that is so, could you tell me the error message or stack trace of that exception?
- If you can, could you send the source code to me that can reproduce this problem?
As you know, I'm sorry that there is nothing I can do if I could not get enough information about the problem.
Thank you for your understanding. π
from toolbelt.blazor.headelement.
from toolbelt.blazor.headelement.
@Tytrobot
Sorry to late,
As to the page description, it appear to be blank, no listing.
No errors that I could see.
Hum... it looks like the server-side pre-rendering feature doesn't work correctly.
Could you show me the source code of the Startup.cs
of your web app?
from toolbelt.blazor.headelement.
from toolbelt.blazor.headelement.
Is pre-rendering needed for the meta tags to work?
Yes, especially to make it to be recognized by internet crawlers.
If you don't use the "HeadElementService - Server Pre-rendering", the "description" meta tag that you inject by marking up the <Meta />
component (or by using the IHeadElementHelper
service) has appeared after when the client-side part of the Blazor runtime's initial tasks are finished.
You can see that on a Web browser's developer tools.
By the way, generic internet crawlers don't process client-side script (there are some exceptions, but anyway).
This means internet crawlers just parse the text that was responded from the server-side of your Blazor Server app - that text is the result of the _Host.cshtml
rendered.
As long as you don't enable the "HeadElementService - Server Pre-rendering", the text that the result of the _Host.cshtml
rendered doesn't include the result of the <Meta />
component or the IHeadElementHelper
service.
So, you have to enable the "HeadElementService - Server Pre-rendering" to make the "description" meta tag that is injected by marking up the <Meta />
component (or by using the IHeadElementHelper
service) can be recognized by the internet crawlers.
from toolbelt.blazor.headelement.
To enable the "HeadElementService - Server Pre-rendering", please see the following instructions.
from toolbelt.blazor.headelement.
I'm glad to resolve this issue. π
Happy coding!
from toolbelt.blazor.headelement.
Related Issues (20)
- Link support and title constant HOT 1
- After update to 6.0.0 the tab text will not automatically update HOT 1
- Add Meta Element without overwriting the existing one HOT 1
- Can only include one HrefLang tag (cannot implement recommended pattern) HOT 5
- Could not find 'Toolbelt.Head.Title.query' ('Toolbelt' was undefined) but on Blazor WASM and DisableClientScriptAutoInjection = true HOT 4
- Should I reapply <Meta> tags on each page of the app? HOT 1
- System.ObjectDisposedException showing up in Production Logs HOT 2
- [Feature Request] Options to supply Type, Hreflang, Title and other options in Link Element
- [Feature Request] Discriminate <Meta> overrides base on other attributes too HOT 5
- [Bug] 7.1.0 - <meta> content attribute value becomes empty and gets replaced by media attribute which gives unexpected results in browser HOT 8
- Changelogs not found HOT 1
- Allowing multiple og:image elements HOT 1
- Consider falling back on setAttribute when HTMLMetaElement.prototype.media doesn't exist HOT 2
- Performance issue HOT 14
- <Link> creates forece reload HOT 4
- Change Html base tag HOT 2
- [Feature Request] Ability to inject script tag into head element? HOT 7
- [Feature Request] HOT 1
- Unhandled exception in circuit HOT 4
- HeadElement depends on Toolbelt.Blazor.HotKeys? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toolbelt.blazor.headelement.