NeuroTechX / learn.neurotechedu.com

Source code for our open-source EDU website
MIT License
72 stars 29 forks source link

url and baseurl set incorrectly #1

Closed jekylltools closed 7 years ago

jekylltools commented 7 years ago

You don't need to use baseurl if you're serving your site from the domain root: https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/

Looking at the source of your search page I noticed that /learn.neurotechedu.com is being prepended to your links. For example,

<script src="/learn.neurotechedu.com/assets/tipuesearch/tipuesearch_content.js"></script>

This results in an url of http://learn.neurotechedu.com/learn.neurotechedu.com/assets/tipuesearch/tipuesearch_content.js instead of the location of the javascript object which is actually http://learn.neurotechedu.com/assets/tipuesearch/tipuesearch_content.js

So looking in your _config.yml I see you have url and baseurl are set like this:

url: 'https://neurotechx.github.io'
baseurl: '/learn.neurotechedu.com'

However, the site appears to be hosted at learn.neurotechedu.com so the url should reflect that you are hosting at the root domain. And baseurl should be blank.

url: "http://learn.neurotechedu.com"
baseurl: ""

Hope that helps!

jekylltools commented 7 years ago

cool it looks like you got the url and baseurl set correctly now. i'll close this issue. let me know if there's anything else I can help with.