Add url detection for articles #6938
+2
−0
SaintPeter
commented on the diff
client/main.js
@@ -379,6 +379,8 @@ $(document).ready(function() { | ||
$('#nav-wiki-btn').on('click', toggleWiki); | ||
$('.wiki-aside-action-collapse').on('click', collapseWiki); | ||
+ $('#wikiFrame').attr('src', 'http://freecodecamp.github.io' + window.location.pathname); |
it should go to whatever is typed in the url bar. if it doesn't, it'll default to root, I believe... no way to test from local. The good news is this shouldn't break our current merges, as it is a inconspicuous enhancement.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
|
hallaathrad
closed this
hallaathrad
reopened this
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.