Comments (8)
@jsakamoto , here is the repro repo link. Please let me know if any additional details are needed.
from toolbelt.blazor.headelement.
@fingers10 Thanks for the excellent reporting!
Due to your contribution, I found a critical bug in this library!
Could you try out the latest version?
from toolbelt.blazor.headelement.
@jsakamoto I tried 7.1.1 and that works as expected. many thanks for your time and efforts to look on to this.
This is optional - I would be more happy if you could write a recommendation to me on linkedin if you find my contributions are worthy.
from toolbelt.blazor.headelement.
@fingers10
Thank you for reporting!
However, unfortunately, I was not able to reproduce the problem that you reported even though I spent a lot of hours. 😥
This problem looks not so obvious.
Could you tell me more details about your project, such as the target framework version (Core3.1, 5.0, 6.0, etc.), runtime type (Blazor server or Blazor WebAssembly), and your app is PWA or not, etc.
Of course, attaching the zipped project file that is minimal to reproduce the problem into this thread is much helpful to figure out the reason for the problem.
from toolbelt.blazor.headelement.
@fingers10
Thank you for providing the URL of your repository to reproduce the problem.
However, unexpectedly, that project worked well in my local environment.
So I have a question.
In your environment, in the "Service Workers" section of the "Application" tab, of the browser's developer tools window, is there any service worker registered?
If it is yes, then could you try out the following steps?
1. Please unregister the service worker.
2. Clear all of the caches of the Blazor application.
3. Close all web browser tabs and windows.
4. Re-launch the web browser, and after opening the app, set the "Disable cache" check box in the "Network" tab and hard reload it.
I hope the app will work fine once after doing that.
from toolbelt.blazor.headelement.
@jsakamoto did you publish the project and running it from iis? It will work properly in development mode but not after publish
from toolbelt.blazor.headelement.
I did the dotnet publish -c:Release
command, and serve the published contents files by using dotnet serve
global tool like this:
dotnet serve -d:"bin/Release/net6.0/publish/wwwroot" -S
I did not make it run on IIS.
from toolbelt.blazor.headelement.
Many thanks for your time and response, Here are the response to previous questions.
I have no service workers registered.
Disabled cache and did a hard reload
Published and running in IIS/ GitHub Pages. Issue occurs in both
As you can see from above image,
<meta name="viewport" media="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" content="">
but index.html
has
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
This breaks the responsiveness of page.
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
- 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.