ambrooo
350
7
Laravel

Image Url is relative to route wildcard

Posted 2 years ago by ambrooo

Hi, I have a problem with my images, but only on the main view, the yields or includes are not affected. For example i have the logo in the header section. First the path is evaluated correct to public folder and then it got reevaluated relative to the route. For example, the logo displays fine if the route is '/', but when I have e route like '/{company}/edit the path is evaluated as /{company}/logo.png. All image files that are on sections or includes display correctly. Does anyone have a clue on this?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.