Mordoc Docs

Routes and Links

Understand how Mordoc turns content files into URLs and how to link between pages.

1 MIN READ

In the previous step, you created a page file:

Text
content/en/my-first-page.md

Mordoc turns that file into a page you can open in the browser:

Text
/my-first-page

This browser address is called a route.

Open your new page

If your local server is still running, open this address in your browser:

Text
http://localhost:5173/my-first-page

You should see the page you created.

How page addresses are created

Mordoc looks at the file location inside content/en/ and creates the matching page address.

Here are a few examples:

Text
content/en/index.md           -> /
content/en/my-first-page.md   -> /my-first-page
content/en/guides/install.md  -> /guides/install
content/en/guides/index.md    -> /guides

The index.md filename is special. It becomes the main page for its folder.

For example:

Text
content/en/index.md        -> /
content/en/guides/index.md -> /guides

You will use this pattern often when organizing groups of pages.

When you link from one page to another, link to the page address, not the file name.

For example, to link to the page you created:

Markdown
[Read my first page](/my-first-page)

Do not write the link like this:

Markdown
[Read my first page](./my-first-page.md)

Readers use page addresses in the browser. Your links should use those same addresses.

The homepage is:

Text
/

Link to it like this:

Markdown
[Go home](/)

Keep addresses simple

Use lowercase words and hyphens in filenames.

Good examples:

Text
getting-started.md
install-guide.md
account-settings.md

Avoid spaces and special characters in filenames.

Later, the Writing Content section will explain more link examples, including links to headings inside a page.

Later, the Languages page will explain how page addresses work when your site has more than one language.

Next step

Add pages to navigation.

© 2026 Mordoc DocsBuilt with Mordoc