Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialStefanie Deverell
1,049 PointsWorkspace preview adding strange characters to URL when I click on other page links in nav menu
Hi all, when I preview my site it looks fine but now I've added an about page and click on the menu link 'About', it takes me to a URL that looks similar to what it should be but with extra characters so I get a 404 error. Here is my code: https://w.trhou.se/tq73sruvy4 as you can see I've played about a bit with the fonts and content but otherwise it should be the same Nick's.
Have I missed out a step or do you think this is a bug?
Thanks Stef
2 Answers
Benjamin Larson
34,055 PointsHi Stefanie,
The problem you are having is extremely subtle, but a good lesson for how picky the coding world is. My guess is that you even hit the right keys on your keyboard, but that perhaps you were coding in a word processor like Microsoft Word or Google Docs.
The issue here has to do with straight quotes and curly quotes. Code tends to only play nice with straight quotes, like these:
' "
Somehow though, curly quotes got introduced into your code:
’ ”
Most word processors will do this automatically, so if you copy and paste code from a program like MS Word, you may run into problems like this. Either way, it's good to be aware of, and once you find your instances of curly quotes, just replace them with the straight quotes and you should be good to go!
Stefanie Deverell
1,049 PointsHi there, sorry it's taken me a while to come back to you! I really appreciate your reply - amazing how something like this can change so much.
Stef