Skip to content

#1704 の修正(checkout@v4 に更新 & rel 属性削除) #1720

@nacchan99

Description

@nacchan99

先日マージした #1704 の修正です🙌

#1704 (comment)
#1704 (comment)

checkout@v3v4に修正( https://github.com/actions/checkout

.github/workflows/fetch_news.yml

 steps:
      - name: Checkout repository
        uses: actions/checkout@v3 #← v4に変更

rel: 'noopener noreferrer' を削除( https://mhdesigns.co.jp/target-blank/

app/views/home/show.html.erb

<% @news_items.each do |news| %>
      <li>
        <%= link_to format_news_title(news), news.url, target: '_blank', rel: 'noopener noreferrer' %> #← rel: 'noopener noreferrer'をカット

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions