Skip to content

Add option to control URL open target (same tab vs new tab)#569

Closed
franco-zalamena-iterable wants to merge 1 commit intoIterable:mainfrom
franco-zalamena-iterable:feat/425-click-open-target-option
Closed

Add option to control URL open target (same tab vs new tab)#569
franco-zalamena-iterable wants to merge 1 commit intoIterable:mainfrom
franco-zalamena-iterable:feat/425-click-open-target-option

Conversation

@franco-zalamena-iterable
Copy link
Copy Markdown

@franco-zalamena-iterable franco-zalamena-iterable commented Apr 7, 2026

Summary

  • Add configurable openLinksInNewTab static property to IterableConfig that controls whether URLs are opened in a new tab (_blank) or the same tab (_self)
  • Default remains true (_blank) for backward compatibility

Test plan

  • Default behavior opens in new tab (backward compatible)
  • Setting IterableConfig.openLinksInNewTab = false opens in same tab (_self)
  • TypeScript types are correct

🤖 Generated with Claude Code

Add `openLinksInNewTab` static property to `IterableConfig` that controls
whether URLs are opened in a new tab (`_blank`) or the same tab (`_self`).
Defaults to `true` for backward compatibility.

Fixes Iterable#425

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.43%. Comparing base (190a168) to head (c9c70d0).

Files with missing lines Patch % Lines
src/utils/IterableActionRunner.ts 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #569      +/-   ##
==========================================
- Coverage   74.45%   74.43%   -0.02%     
==========================================
  Files          57       57              
  Lines        2736     2738       +2     
  Branches      798      815      +17     
==========================================
+ Hits         2037     2038       +1     
+ Misses        698      659      -39     
- Partials        1       41      +40     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@franco-zalamena-iterable franco-zalamena-iterable deleted the feat/425-click-open-target-option branch April 8, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants