GithubHelp home page GithubHelp logo

[Bug] 7.1.0 - <meta> content attribute value becomes empty and gets replaced by media attribute which gives unexpected results in browser about toolbelt.blazor.headelement HOT 8 CLOSED

jsakamoto avatar jsakamoto commented on July 2, 2024 1
[Bug] 7.1.0 - content attribute value becomes empty and gets replaced by media attribute which gives unexpected results in browser

from toolbelt.blazor.headelement.

Comments (8)

fingers10 avatar fingers10 commented on July 2, 2024 1

@jsakamoto , here is the repro repo link. Please let me know if any additional details are needed.

from toolbelt.blazor.headelement.

jsakamoto avatar jsakamoto commented on July 2, 2024 1

@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.

fingers10 avatar fingers10 commented on July 2, 2024 1

@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.

jsakamoto avatar jsakamoto commented on July 2, 2024

@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.

jsakamoto avatar jsakamoto commented on July 2, 2024

@fingers10
Thank you for providing the URL of your repository to reproduce the problem.

However, unexpectedly, that project worked well in my local environment.

image

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?

image

If it is yes, then could you try out the following steps?

1. Please unregister the service worker.

image

2. Clear all of the caches of the Blazor application.

image

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.
image

I hope the app will work fine once after doing that.

from toolbelt.blazor.headelement.

fingers10 avatar fingers10 commented on July 2, 2024

@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.

jsakamoto avatar jsakamoto commented on July 2, 2024

@jsakamoto

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.

fingers10 avatar fingers10 commented on July 2, 2024

@jsakamoto ,

Many thanks for your time and response, Here are the response to previous questions.

I have no service workers registered.

image

Disabled cache and did a hard reload

image

Published and running in IIS/ GitHub Pages. Issue occurs in both

image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.