Freecodecamp: Clicking on link in the code preview opens up the web page within the web page

Created on 28 Jan 2019  路  4Comments  路  Source: freeCodeCamp/freeCodeCamp

Clicking on link in the code preview (for example on "The Garfield Files") opens up web page with all three modules again (Coding Challenge, Code field, Code preview).

the garfeld files

garfield2

I don't know, if this is challenge specific.


Link to the page with the problem:

Tell us about your browser and operating system:

  • Browser Name: Firefox
  • Browser Version: Firefox for Linux Mint 1.0
  • Operating System: Linux Mint 18.3

Most helpful comment

When I say stand alone web page I mean the you copy the html part out from the FCC paste it in another new file on you PC and run.

What we can do is make a PR so that the href contains "#" and not "", that fixes it

All 4 comments

This is due to how the rendering engine for our curriculum works. If you try this on a stand alone webpage, it won't happen.

Thank you for the explanation @thecodingaviator.
May I ask, how I could open it on a stand alone web page?
Could we maybe improve the issue, by inserting a dead link instead of leaving it empty?

When I say stand alone web page I mean the you copy the html part out from the FCC paste it in another new file on you PC and run.

What we can do is make a PR so that the href contains "#" and not "", that fixes it

@thecodingaviator

That is a valuable piece of information, thank you!
I will create the PR immediately.

Was this page helpful?
0 / 5 - 0 ratings