rangareddy commented on code in PR #13857:
URL: https://github.com/apache/hudi/pull/13857#discussion_r2351919916
##########
website/src/theme/BlogPostItem/BlogPostBox.js:
##########
@@ -87,7 +87,10 @@ export default function BlogPostBox({metadata = {}, assets,
frontMatter}) {
)}
<TitleHeading className={styles.blogPostTitle}
itemProp="headline">
{location.pathname.startsWith('/blog') ?
- <Link itemProp="url" to={permalink}>
+ <Link itemProp="url" to={permalink}
onClick={(e) => {
+ e.preventDefault();
+ window.open(permalink, '_blank',
'noopener,noreferrer');
+ }}>
Review Comment:
Hi @xushiyan
Internally, the Video Guides section opens a new table using the code shown
below. For testing, I added an alert to confirm that this code is being called.
I have implemented a similar approach for the Blogs section as well.
```javascript
const manageVideoOpen = (videoLink) => {
alert('manageVideo' + videoLink)
if(videoLink) {
window.open(videoLink, '_blank', 'noopener noreferrer');
}
}
```
<img width="449" height="165" alt="image"
src="https://github.com/user-attachments/assets/43c6831a-2918-4dbe-8246-bca44ac4cda0"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]