Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Feature Request: ctrl-click to open in new window on react based pages

オープン 初心者向け
#1,587 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@morozov-av がすでに取り組んでいます。

2026年10月8日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
75/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

まず、Runestone Academy フロントエンドでトップレベルのナビゲーションリンクとボタンを描画する React コンポーネントを特定します。Ctrl キーが押されているかを確認し、issue で説明されている部分文字列の比較を使って、リンク先が新しいトップレベルページかどうかを判定するクリックハンドラーを追加します。該当する場合は、現在のページで遷移する代わりにリンクを新しいタブで開きます。同じページ内へのナビゲーションリンクと別ページへのナビゲーションリンクの両方を Ctrl キーを押しながらクリックして修正をテストし、正しく動作することを確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.
I often want to leave the page I am on up while I open a link in a new tab. The react pages treat Ctrl-click like click and always changes the current page, even for something that is a top level navigation change.

Describe the solution you'd like
Buttons that function as top level links should try to handle ctrl-click by opening in a new window.

I think if neither current nor new URL are a substring of the other we could assume it is a new top level destination.

https://runestone.academy/assignment/instructor/grader
to
https://runestone.academy/assignment/instructor/grader/293802
is same page. As would be the other direction because one URL is a substring of the other.

https://runestone.academy/assignment/instructor/grader
to
https://runestone.academy/assignment/instructor/builder
is different page.

主要言語
TypeScript
スター
69
フォーク
119
平均マージ
2日 5時間
マージ済み PR(30日)
30

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RunestoneInteractive/rs のほかの issue

RunestoneInteractive/rs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。