Skip to content

Add url detection for articles #6938

Open
wants to merge 1 commit into from

3 participants

@hallaathrad
Free Code Camp member

No description provided.

@SaintPeter 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);
@SaintPeter
Free Code Camp member

If we do not have an en in the path will this work?

@hallaathrad
Free Code Camp member

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 hallaathrad deleted the hallaathrad:feature/wiki-sidebar branch
@hallaathrad hallaathrad removed the QA label
@hallaathrad hallaathrad restored the hallaathrad:feature/wiki-sidebar branch
@hallaathrad hallaathrad referenced this pull request
Open

Show Wiki routes #7303

@hallaathrad hallaathrad reopened this
@hallaathrad hallaathrad added the QA label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.