Open jnichel opened 2 years ago
What do you have at your APP_URL in your .env?
Sorry, I should have included that in the original post.
APP_URL='https://intranet.kegworks.com/assets'
Can you try to change the line into
<img src="{{ asset('/uploads/avatars/user-avatar-S1KaoEiQqc.jpg')}}" class="avatar img-thumbnail hidden-print" alt="Test User">
@JemCdo Thank you for the response. Where do I change this line? When I said I look at the source code for the user details page in my original post, I'm talking about the processed page in the browser; right click -> View Page Source. That is not editable.
You shouldn't have to change anything in the code though.
Debug mode
Describe the bug
I have Snip-IT installed in a sub-directory of our company Intranet. Followed the instructions for doing this and everything seems to have gone fine and the tool is working for the most part. The only issue is user images; for whatever reason, the code is not seeing the sub-directory for these images. When I look at the source code for the user details page, I see this:
<img src="/uploads/avatars/user-avatar-S1KaoEiQqc.jpg" class="avatar img-thumbnail hidden-print" alt="Test User">
The problem is, the URI should be /assets/uploads/avatars/user-avatar-S1KaoEiQqc.jpg
The image shows up fine when you try to edit the user however.
Reproduction steps
Expected behavior
I would expect the tool to use the sub-directory as its document root throughout the site. User details page is the only place I've noticed this so far.
Screenshots
No response
Snipe-IT Version
5.3.10
Operating System
CentOS Stream release 8
Web Server
Apache/2.4.37
PHP Version
PHP 7.4.29
Operating System
Windows 10 Professional
Browser
Firefox and Chrome
Version
97.0.2 (FF) & 100.0.4896.127 (Chrome)
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
Fresh install vi Git Clone Manual install Just setting it up at the moment; adding company, users, departments, etc. No error messages Have not manually edited the database