diff --git a/docs/js/samples.js b/docs/js/samples.js index 684128ae..c9f4a447 100644 --- a/docs/js/samples.js +++ b/docs/js/samples.js @@ -51,7 +51,13 @@ requirejs([ var search = parseSearchString(window.location.search); if (search.repo && search.owner) { if (search.type === "docs") { - window.location.href = "http://github.com/" + search.owner + "/" + search.repo + "/blob/master/README.md"; + var special = { + "greggman/hft-unity2dplatformer": "/docs/unity/2d-platformer.html", + "greggman/hft-unitycharacterexample": "/docs/unity/3d-characters.html", + }; + var url = special[search.owner + "/"+ search.repo] || + "http://github.com/" + search.owner + "/" + search.repo + "/blob/master/README.md"; + window.location.href = url; } else { setButtonTarget("github", "http://github.com/" + search.owner + "/" + search.repo);