Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Handle '//' (double slash) caused by baseurl: '/' #6057
My Reproduction Steps
To start off with, I realise that setting baseurl to
I figured that with the relative/absolute filters added in 3.3 there was now a standard/universal place to fix this in a way that would make the end user experience easier, while possibly also hinting them towards not using the 'bad method'
The Output I Wanted
This could be achieved by using a regex/similar to strip off any trailing/leading slashes before concatenation.
For what it's worth, the hacky filter I used in my theme to work around this was:
But this obviously doesn't let me work around it when it comes up in other plugins.
It would also be reasonable to expect a warning from Jekyll about how using