Skip to content

Commit c60137b

Browse files
committed
fix: resolve routing for external HTTP links
This fixes an issue where clicking on external links (like Castarook) in the Banner and Sidebar components resulted in a 404 error instead of navigating to the external site. The cause was react-router-dom intercepting the click events on <Link> components, even for external absolute URLs starting with http, and attempting to route them internally within the SPA. To fix this, we updated the components to check if the link starts with http. If so, a standard, native HTML <a> tag is rendered instead of a React Router <Link>. This bypasses React Router and allows the browser to perform a standard page navigation to the external URL in the same tab. - Added comments to the source code to explain this logic. - Bumped patch version in package.json to 0.20.1.
1 parent 5682657 commit c60137b

File tree

6 files changed

+110
-89
lines changed

6 files changed

+110
-89
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fezcodex",
3-
"version": "0.20.0",
3+
"version": "0.20.1",
44
"private": true,
55
"homepage": "https://fezcode.com",
66
"dependencies": {

public/rss.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<link>https://fezcode.com</link>
1010
</image>
1111
<generator>RSS for Node</generator>
12-
<lastBuildDate>Mon, 02 Mar 2026 17:51:30 GMT</lastBuildDate>
12+
<lastBuildDate>Mon, 02 Mar 2026 20:09:26 GMT</lastBuildDate>
1313
<atom:link href="https://fezcode.com/rss.xml" rel="self" type="application/rss+xml"/>
14-
<pubDate>Mon, 02 Mar 2026 17:51:29 GMT</pubDate>
14+
<pubDate>Mon, 02 Mar 2026 20:09:26 GMT</pubDate>
1515
<copyright><![CDATA[2026 Ahmed Samil Bulbul]]></copyright>
1616
<language><![CDATA[en]]></language>
1717
<managingEditor><![CDATA[samil.bulbul@gmail.com (Ahmed Samil Bulbul)]]></managingEditor>

0 commit comments

Comments
 (0)