treehouses / treehouses.github.io

A Markdown Wiki for treehouses 🏡
http://treehouses.io
132 stars 107 forks source link

Tutorial anchor links fail when opened in a new tab #824

Open JLKwong opened 3 years ago

JLKwong commented 3 years ago

Problem

In Step 3, GitHub and Markdown, the anchor links for the summary of the steps will open an invalid page if opened in a new tab.

Steps to reproduce the problem

  1. Go to the GitHub and Markdown tutorial
  2. Find the links under Start Here
  3. Right-click or middle-click (with the scroll-wheel) one of the links to open it in a new tab.

    Screenshots

    image image image

    Proposed solution

    N/A (I don't know how to resolve this in HTML/MDwiki)

rjpadilla commented 3 years ago

I have several ideas on whats going on

So I don't know how strong your jQuery skills (its like Javascript + DOM), but I would probably start in treehouses.github.io/mdwiki/js/. Start with the util.js file and move my way up through the /js/ directory and see what would finally make it work.

Though I honestly don't know if we are allowed to modify the MDwiki template. So you may want to ask @dogi or the Systems team before preceding.