TheOdinProject / curriculum

The open curriculum for learning web development
https://www.theodinproject.com/
Other
10.1k stars 13.53k forks source link

Bug: Anchor to one of the lesson's content not working #28457

Closed thomasmfx closed 3 months ago

thomasmfx commented 3 months ago

Checks

Bug description

After clicking the link "What is Big Omega and why isn’t it as useful?" at the Knowledge Check of the following lesson, the page goes to top instead of the Omega Notation content.

This is the link of the lesson: https://www.theodinproject.com/lessons/javascript-time-complexity

After clicking the respective link to Omega Notation, the following is added to the end of the URL: #big--omega-notation

As you can see, the end of the URL includes a GET with what i think is an extra "-" , that's what might be causing the bug i guess.

How to reproduce

  1. Sign in
  2. Visit: Path: Fullstack Javascript > Course: Javascript > Section: A Bit of Computer Science > Lesson: Time Complexity
  3. Go to the "Knowledge check" part
  4. Click the "What is Big Omega and why isn’t it as useful?" link
  5. Page goes to top instead of going to Omega Notation's content

Expected behavior

  1. Sign in
  2. Visit: Path: Fullstack Javascript > Course: Javascript > Section: A Bit of Computer Science > Lesson: Time Complexity
  3. Go to the "Knowledge check" part
  4. Click the "What is Big Omega and why isn’t it as useful?" link
  5. Go to Omega Notation's content

What browsers are you seeing the problem on?

Chrome

What OS are you using?

Windows

Discord Name

snex771

Additional Comments

My first contribution, hope i followed the guides correctly!

KevinMulhern commented 3 months ago

Thanks for the report @thomasmfx. Looks like an extra - in the markdown link. I'll assign this to you and transfer it to the curriculum repo.