Skip to content

Commit

Permalink
Update 48in24.html.haml: Fix Exercise Link to use slug (#6677)
Browse files Browse the repository at this point in the history
The link on the 48in24 page seems to be linking to a serialized exercise object. This might fix it, if I'm following the other exercise link example correctly.
  • Loading branch information
highb committed Jan 16, 2024
1 parent 34a71c6 commit 72d40ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/challenges/48in24.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- if featured_exercise
%h1.text-h1.mb-8 This week, we're featuring #{featured_exercise.title}.
%p.text-p-xlarge.mb-12
For week #{week} of #48in24, we're exploring #{link_to featured_exercise.title, generic_exercise_path(featured_exercise), class: 'underline'}.
For week #{week} of #48in24, we're exploring #{link_to featured_exercise.title, generic_exercise_path(featured_exercise.slug), class: 'underline'}.
%p.text-p-large.mb-12= featured_exercise.learning_opportunity

%p.text-p-large.mb-12
Expand Down

0 comments on commit 72d40ae

Please sign in to comment.