Skip to content

Fix the user hero#9638

Merged
mehalshah merged 2 commits into
stagingfrom
fix_user_hero
Jul 21, 2016
Merged

Fix the user hero#9638
mehalshah merged 2 commits into
stagingfrom
fix_user_hero

Conversation

@mehalshah

Copy link
Copy Markdown
Contributor

No description provided.

@mehalshah

Copy link
Copy Markdown
Contributor Author

Going to code.org then clicking on one of the links in the teacher user hero would redirect to code.org/course/the-course%20name and would be a dead link. It should be redirecting to studio.code.org and all hyphens should be subbed

#{course_enrollment.plc_course.name}
.flex_item{style: 'width: 50%'}
= link_to course_path(course_enrollment.plc_course.name.downcase.sub(' ', '-')) do
= link_to root_url + course_path(course_enrollment.plc_course.name.downcase.gsub(' ', '-')) do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work in all environments (localhost/staging/test/prod) to keep the user on that environment? We have some other helpers that do that at https://github.com/code-dot-org/code-dot-org/blob/staging/deployment.rb#L200

But if it already works, then lgtm.

@breville

Copy link
Copy Markdown
Member

lgtm

@mehalshah mehalshah merged commit bfd5ed5 into staging Jul 21, 2016
@mehalshah mehalshah deleted the fix_user_hero branch August 9, 2016 18:30
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