Skip to content

Commit 8a2d1c0

Browse files
author
TechStack Global
committed
fix(automation): update seo_audit to support root canonical on index.html
1 parent 248cd39 commit 8a2d1c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seo_audit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
def get_expected_live_url(filepath):
2626
rel_path = os.path.relpath(filepath, BASE_DIR).replace('\\', '/')
27+
if rel_path == 'index.html':
28+
return f"{BASE_URL}/"
2729
return f"{BASE_URL}/{rel_path}"
2830

2931
def is_valid_url(url, current_filepath):

0 commit comments

Comments
 (0)