Oliver 2025-04-22 12:29:11 +10:00 committed by GitHub
parent 0bf1ab250f
commit 527652007e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1024,6 +1024,7 @@ DATE_INPUT_FORMATS = ['%Y-%m-%d']
SITE_URL = get_setting('INVENTREE_SITE_URL', 'site_url', None) SITE_URL = get_setting('INVENTREE_SITE_URL', 'site_url', None)
if SITE_URL: if SITE_URL:
SITE_URL = str(SITE_URL).strip().rstrip('/')
logger.info('Using Site URL: %s', SITE_URL) logger.info('Using Site URL: %s', SITE_URL)
# Check that the site URL is valid # Check that the site URL is valid