handle public folder shenanigans

This commit is contained in:
Anish Lakhwara 2022-07-11 14:40:55 +10:00
parent a2935a5251
commit 50f7ee786d

View file

@ -413,6 +413,10 @@ def clean_path(path):
items = path_clean.split('\\') items = path_clean.split('\\')
else: else:
items = path_clean.split('/') items = path_clean.split('/')
# TODO ugly hack to handle poonam outputting public, but we want ./
print(items)
if items[0] == 'public':
items[0] = './'
path_items = { path_items = {
"slug": None, "slug": None,