canonical / react-components

A set of components based on Vanilla Framework
https://canonical.github.io/react-components
82 stars 49 forks source link

Code Snippet Content Iframe shows 404 on production #1102

Closed jmuzina closed 1 week ago

jmuzina commented 2 weeks ago

Describe the Issue

The Code Snippet: Content page shows an embedded iFrame that resolves to a 404 on production. This does not occur if you run the site locally with dotrun and view the page there.

This will be tough to QA without deploying the change as it appears the problem does not occur for demos.haus builds. I'm not familiar with how demos.haus works; maybe there is some step there that is preventing this bug from happening in demos.haus, or some Github pages-specific problem?

Steps to reproduce

  1. Go to the production code snippet content page
  2. Observe that the iframe shows 404
  3. Clone the repo
  4. Run dotrun to serve the project locally
  5. Go to the same page on your localhost environment and observe that the iframe is served as expected.

Device

OS: PopOS 22.04 Browser: Firefox Snap (v 127.0)

Screenshots

Production: image Demos.haus: image Localhost: image