Title: Local URL references broken · Issue #176 · htmlpreview/htmlpreview.github.com · GitHub
Open Graph Title: Local URL references broken · Issue #176 · htmlpreview/htmlpreview.github.com
X Title: Local URL references broken · Issue #176 · htmlpreview/htmlpreview.github.com
Description: When I look at an HTML file through html-preview.github.io, it treats html-preview.github.io as the current directory, so any ./ references don't work. For example, it interprets
as
X Description: When I look at an HTML file through html-preview.github.io, it treats html-preview.github.io as the current directory, so any ./ references don't work. For example, it interprets <img src=&q...
Opengraph URL: https://github.com/htmlpreview/htmlpreview.github.com/issues/176
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Local URL references broken","articleBody":"When I look at an HTML file through html-preview.github.io, it treats html-preview.github.io as the current directory, so any ./ references don't work. For example, it interprets `\u003cimg src=\"./selfie.jpg\">` as `\u003cimg src=\"https://html-preview.github.io/selfie.jpg\">`.","author":{"url":"https://github.com/cubingpenguin","@type":"Person","name":"cubingpenguin"},"datePublished":"2026-06-17T13:58:44Z","url":"https://github.com/htmlpreview/htmlpreview.github.com/issues/176"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bee0b4e2-fd21-43a4-2985-b01e921c1bb0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2EC:43FF1:2E9491D:3C48919:6B041263 |
| html-safe-nonce | f49d83f52706f13c2a49c3f2df92880bda7c6f6e9efe9ea7d910146846964169 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkVDOjQzRkYxOjJFOTQ5MUQ6M0M0ODkxOTo2QjA0MTI2MyIsInZpc2l0b3JfaWQiOiIyMjc4NDQ5OTYyOTk4MzA1MzgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 274891803782da34da135dab7245947345d5a8d92d2887dcf7245c0e7e8672cb |
| hovercard-subject-tag | issue:4683960272 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/htmlpreview/htmlpreview.github.com/176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09b25db3a3861ec64ac6f11c2cb18395336079515fc0e584417ee42888b6106a/htmlpreview/htmlpreview.github.com/issues/176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09b25db3a3861ec64ac6f11c2cb18395336079515fc0e584417ee42888b6106a/htmlpreview/htmlpreview.github.com/issues/176 |
| og:image:alt | When I look at an HTML file through html-preview.github.io, it treats html-preview.github.io as the current directory, so any ./ references don't work. For example, it interprets |