URL Routes table mapping friendly paths to HTML files
URL Routes

Appifio Creator · Lesson AS04 · Beginner · Aura series

URLs and HTML pages
must travel together

Avoid “blank page / 404”: having a page file is not enough - you also need a matching route.

Learning goals: Understand the HTML file + URL route pair; add a route with the right UI labels; self-check when you hit a 404.

Reading time: ~12 minutes · Previous: AS03, D02 · Next: AS05

Routes Add Route Save Files Save changes routes.json

1. The pair map

Code editor showing HTML page files in Creator
HTML page files
Want to open: /about
├─ Need a page file: e.g. about.html (Files tab)
└─ Need a route row: /about → that file (Routes tab)
Missing either one → visitors hit an error / not found

Like having a meeting room with no room number on the hallway signs: the room exists, visitors still get lost.

2. Glossary

TermMeaningWhere you see it
Page fileHTML file that holds the page contentFiles tab
RouteThe address after the domain that visitors typeRoutes tab
Add RouteButton to add one URL ↔ file pairRoutes tab
routes.jsonThe route map file (visible in the UI)Routes / Files tabs

3. Steps

  1. Ask AI (Coder) to create about.html - or create the file in the Files tab.
  2. Open Routes → click Add Route.
  3. Set path /about pointing at the new file → click Save in the Routes tab.
  4. Toolbar → Save changes.
  5. Open the live link …/about (not only the draft preview).

4. Sample prompt

“Create an About page as about.html and add route /about pointing at that file. Confirm routes.json has a matching row. Every navigation link must use absolute URLs (getAbsoluteUrl helper), not href starting with / that drops the link name.”

4b. Nested routes (tag / category) - required for private URLs

Home /your-link/ exists by default. Every other address (posts, tags, categories…) must have a row in Routes. Examples:

  • an-article-about-ai → post detail file
  • tag/javascript → tag listing page
  • category/tech → category listing page
Post data exists in Backend but visitors get 404 → usually a missing route, not a “lost post”. When you delete a post: remove the matching route too (ask AI / Routes tab).

4c. Absolute URLs - why links jump wrong

App pages have a tag pointing at the app root. A link written as /about (leading slash) can drop the link name and land on the domain root. Links with ../… also go sideways easily.

How you write itOK?
href="about" or an absolute-URL helper✅ Correct direction
href="/about"❌ Easy to drop the link name
href="about.html"❌ Visitors need the route slug, not the file name

Coder prompt: “use getAbsoluteUrl(slug) for every page change”. Full sample code: AM10.

5. Comparisons

  • Webflow / Framer: also have “pages + slug” - same pairing idea.
  • WordPress permalink: post slug ≈ route; in Appifio you see the file and the routes table clearly.

6. Limits

You can

  • Many pages / many URLs
  • AI can create the full pair if the prompt is clear

You cannot

  • HTML alone is not enough for a clean URL
  • A misspelled route → 404 (X04)

7. Common issues

SituationFix
404 on liveCheck Routes tab + whether you clicked Save changes
File exists, route missingAdd Route → Save → Save changes
Route points at the wrong fileEdit the route row to match the Files name
Link jumps wrong / drops link nameDrop href="/…"; use absolute URLs (section 4c / AM10)

8. Checklist

  1. Do you have both the HTML file and a Routes row?
  2. Did you Save (Routes tab) + Save changes?
  3. Did you try the URL on Current / live?

AS05 - Admin login & roles

Appifio Creator · Aura series · AS04