From 7832a556495c2b840ac0153f925df97e719ecfca Mon Sep 17 00:00:00 2001 From: CS Rhymes Date: Tue, 23 Jan 2024 09:09:07 +0000 Subject: [PATCH] Update readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 303fe8f..7e010d7 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,9 @@ $post->brokenLinks[0]->exception_message; // The optional exception message ### Relative links -If you have relative links within a html field in your model (that begin with '/', rather than absolute urls beginning with 'http'), then you can pass a 3rd parameter as the base. The CheckModelForBrokenLinks job will prepend the base to the relative url before it is checked. +If you have relative links within a html field in your model (that don't begin with 'http'), then you can pass a 3rd parameter as the base. The CheckModelForBrokenLinks job will prepend the base to the relative url before it is checked. + +If your relative links don't begin with `/`, then ensure your base parameter has a trailing slash, `'http://example.com/'`. ```php use ChrisRhymes\LinkChecker\Jobs\CheckModelForBrokenLinks;