2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 03:00:54 +00:00

Fix for URL redirect (#9914)

- Need leading / to ensure absolute path
This commit is contained in:
Oliver
2025-07-01 11:22:11 +10:00
committed by GitHub
parent 3482ab4956
commit e96e78cf0d

View File

@ -183,7 +183,7 @@ if settings.FRONTEND_SETTINGS.get('url_compatibility'):
urlpatterns += [
re_path(
r'^.*$',
RedirectView.as_view(url=settings.FRONTEND_URL_BASE, permanent=False),
RedirectView.as_view(url=f'/{settings.FRONTEND_URL_BASE}', permanent=False),
name='index',
)
]