fix pathname for data requests (#4149)
### Description
| input file | HTML pathname | Data pathname |
| ------------------ | ------------- | ---------------- |
| index.tsx | / | .../index.json |
| blog.tsx | /blog | .../blog.json |
| pricing/index.tsx | /pricing | .../pricing.json |