Spanish Total.js
English
Documentation For AI agents
Contents

Publish one URL in two languages

Show different content at the same address for each language.

.md GitHub
On this page

Two pages can share one URL address when each has its own language.

Create the pages

  1. Create a page with the URL address /hello/ and the Language en.
  2. Create a second page with the same URL address and the Language sk.
  3. Add the content of each page.

Open a language

Add the language to the address:

/hello/?language=en
/hello/?language=sk

Set the default language

Without a language in the address, these pages return a 404 error. To choose the default, add this line to the configuration file and restart the app:

language              : en

Pages with an empty Language field appear in every language.

Made in Europe