Skip to content

Commit

Permalink
Merge pull request #7045 from fjordllc/feature/change-title-tag-for-i…
Browse files Browse the repository at this point in the history
…ndividual-question-page

Q&A個別ページのtitleタグの最初にQ&Aと表示するように変更
  • Loading branch information
komagata authored Nov 15, 2023
2 parents f5e71bc + a508f55 commit 3304f5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/questions/show.html.slim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- title @question.title
- title "Q&A #{@question.title}"
- if @question.practice
- set_meta_tags description: "#{@question.user.long_name}さんが投稿した、プラクティス「#{@question.practice}」に関する質問「#{@question.title}」のページです。"
- else
Expand Down
2 changes: 1 addition & 1 deletion test/system/questions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class QuestionsTest < ApplicationSystemTestCase
test 'show a question' do
question = questions(:question8)
visit_with_auth question_path(question), 'kimura'
assert_equal 'テストの質問 | FBC', title
assert_equal 'Q&A テストの質問 | FBC', title
end

test 'create a question' do
Expand Down

0 comments on commit 3304f5b

Please sign in to comment.