You should generate the links with the route() helper.
Do you have an example of code ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a site running Laravel 6 with PHP 7.1. It is housed on Digital Ocean and I use Forge to manage it. I have directed another domain to the server; some of my links show up with the main URL and others show the redirected URL. I am using a getLink() to generate all my in-site URLs and I can't figure out where my problem is. Is the problem with my server setup, domain setup, or my code?
@davidalavely I hope someone doesn't say I am off topic here.
@jeffreyway I am only inserting here due to security.
@davidalavely see https://laracasts.com/discuss/channels/laravel/unknow-script-is-injecting-when-the-page-is-loading?page=1&replyId=920096
Where laravel 6 may need checked for security.
Sorry if off topic, but security is important.
Put the image on imgur, and give link to it. Imgur is a known site many here use.
Please or to participate in this conversation.