Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipes: A line of code could cause problems to some people #29235

Closed
3 tasks done
SamiNasry opened this issue Dec 26, 2024 · 1 comment
Closed
3 tasks done

Recipes: A line of code could cause problems to some people #29235

SamiNasry opened this issue Dec 26, 2024 · 1 comment

Comments

@SamiNasry
Copy link

Checks

Describe your suggestion

Here in step 4 :

Back in the index.html file, add a link to the recipe page you just created. Example: Under the <h1>Odin Recipes</h1> heading, write out the link like so: <a href="recipes/recipename.html">Recipe Title</a>. The text of the link should again be the recipe name.

The href you gave could cause some problem to people cause it caused it to me.

It's better to change it to href="./recipes/recipename.html".

This problem occur also in other chunks of code on the same page.

Path

Foundations

Lesson Url

https://www.theodinproject.com/lessons/foundations-recipes

(Optional) Discord Name

No response

(Optional) Additional Comments

No response

@MaoShizhong
Copy link
Contributor

At least with HTML relative paths, omitting the ./ shouldn't make a difference. HTML treats them the same with or without. I suspect when you did encounter an issue previously, problems were caused by something else without you realising.

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

No branches or pull requests

3 participants