updated canonical logic
updated canonical logic

the previous canonical logic stopped working at some point, this restores the canonical logic to work as expected

additional note: liquid sucks. As such, this code is forced to use the filter `replace` to check for a protocol
ideally the code would use `truncate` but it's behavior is strange at best.

In the future errors may occur where a url looks like "sendgrid.com/docs/http://yay.co" and this will be set to the canonical
at this time, the risk of that is extremely small, but it bears re-examining.

katieporter/docs,Whatthefoxsays/docs,taz77/docs,awwa/docs,bogdanboss/docs,sendgrid/docs,katieporter/docs,taz77/docs,jacobmovingfwd/docs,katieporter/docs,Zaftula/docs,Ranhiru/docs,Ranhiru/docs,GilUpstream/docs,hardikjain29/docs,ksigler7/docs,hardikjain29/docs,GilUpstream/docs,Aonepathan/docs,Ranhiru/docs,jacobmovingfwd/docs,sendgrid/docs,GilUpstream/docs,bogdanboss/docs,Zaftula/docs,bogdanboss/docs,L2G/docs,sendgrid/docs,L2G/docs,Zaftula/docs,Zaftula/docs,GilUpstream/docs,L2G/docs,GilUpstream/docs,L2G/docs,ksigler7/docs,Zaftula/docs,Whatthefoxsays/docs,jacobmovingfwd/docs,jacobmovingfwd/docs,Aonepathan/docs,hardikjain29/docs,katieporter/docs,awwa/docs,Ranhiru/docs,Aonepathan/docs,ksigler7/docs,taz77/docs,bogdanboss/docs,taz77/docs,Ranhiru/docs,awwa/docs,awwa/docs,katieporter/docs,awwa/docs,hardikjain29/docs,taz77/docs,Whatthefoxsays/docs,L2G/docs,Aonepathan/docs,jacobmovingfwd/docs,bogdanboss/docs,hardikjain29/docs,Aonepathan/docs