Plugin assets pointing to absolute path

I’m using a paid theme from theme forest. I know, first mistake… clients huh.

The problem is that some of the assets required have an absolute file path like:
http://hwk.test/wp/srv/www/hwk.com/current/web/app/plugins/gt3-listingeasy-core-plugin/includes/extensions/gt3_section/gt3_section/field_gt3_section.js

Which gives a 404. I checked to see in the browser, and if I make the url like so:
http://hwk.test/app/plugins/gt3-listingeasy-core-plugin/includes/extensions/gt3_section/gt3_section/field_gt3_section.js
The file loads.

I think it may be the .env file:

DB_HOST='localhost'
DB_NAME='sdfsdt'
DB_PASSWORD='dfsds'
DB_USER='hwk_com'
DB_USER_HOST='localhost'
DISABLE_WP_CRON='True'
DOMAIN_CURRENT_SITE='hwk.test'
WP_ENV='development'
WP_HOME='http://hwk.test'
WP_SITEURL='http://hwk.test/wp'

Your .env file looks correct. I’m assuming it’s the theme itself here which is not using a proper method to generate an asset URL.

What @swalkinshaw said - try a find in the theme code for $_SERVER and/or realpath('x')