Spaces:
Runtime error
Runtime error
Commit
·
825a801
1
Parent(s):
37c6b88
Fix wikipedia image issue for sidebar
Browse filesAdded <base href="https://en.wikipedia.org"> in the HTML template, which stops treating wiki urls are relative urls. The wiki page rendering is almost perfect. Next step is to fix the wiki rendering inside the textbox inside the map marker.
frontend/src/components/Map.js
CHANGED
@@ -112,6 +112,8 @@ const Map = ( { onMapClick, searchQuery, contentType } ) => {
|
|
112 |
body { font-family: Arial, sans-serif; padding: 20px; }
|
113 |
img { max-width: 100%; }
|
114 |
</style>
|
|
|
|
|
115 |
</head>
|
116 |
<body>
|
117 |
${data.content}
|
|
|
112 |
body { font-family: Arial, sans-serif; padding: 20px; }
|
113 |
img { max-width: 100%; }
|
114 |
</style>
|
115 |
+
<base href="https://en.wikipedia.org">"
|
116 |
+
<!-- The upper line is added so that relative links in the Wikipedia content work correctly. -->
|
117 |
</head>
|
118 |
<body>
|
119 |
${data.content}
|