vercel-redirects icon indicating copy to clipboard operation
vercel-redirects copied to clipboard

Trailing slash at the beginning should be automatically added if not present

Open fr3fou opened this issue 5 years ago • 0 comments

Running vercel-redirects foo.com bar will result in a redirect that can't be accessed:

{
	"redirects": [
		{ "source": "bar", "dest": "foo.com" }
	]
}

An extra / should be added before bar, like so

{
	"redirects": [
		{ "source": "/bar", "dest": "foo.com" }
	              // ^ right here
	]
}

fr3fou avatar Oct 30 '20 18:10 fr3fou