Welcome to the OpenCities help centre. Search for what you're after, or browse the categories.
Can't find what you're looking for? Submit a support ticket and we'll be in touch.


Set a page's URL and URL path

avatar of OpenCities Product Team

OpenCities Product Team

Last updated

Publishing a page determines its URL and its placement in your site's navigation. The Page name field gives it a URL, and its position in the site tree creates a URL path for the page. You can change both of these aspects. However, as these changes affect the page's URL, the page and child pages need to be republished. The URL path determines the breadcrumbs of a page.


What determines the URL and URL path

When you create a page, you will always need to fill the Page name field as this field determines the URL of your page. The URL path is decided by the page's location in the site tree, with the Page name deciding the final part of the URL.


For example, the URL path of the example page above is [Public]/Council/Council-Information. In this example, the Page name 'Council Information' has set the final part of the URL, while its position as a child page of 'Council' has set the URL path. This differs from the Page title, which determines the page's title seen in menus, breadcrumbs, landing pages, search results, and at the top of the live page.

For many reasons, you may need to edit these aspects of the page. To make these edits, the page will need to be in work-in-progress (WIP) status as you may need to change the Page name and Page title and move pages within the site tree.

Move pages in the site tree

Moving pages within the site tree is simple; it's merely a matter of dragging and dropping pages in their new location. This will change the URL path and the order of pages on your live site. 

  1. Navigate to the admin of the page you want to move and select Update to put the page in WIP mode.
  2. Click on the page and drag and drop the page into its new position in the site tree. Hovering over a new section of the site tree will expand it if you need to nest the page. Dropping a page directly onto a parent page will nest it as a child page, but you may need to reorder it within that section. 
  3. When your page is in its new section and position in the site tree, select Publish.

Your page will now have a new URL path. All previous URL links will be retained under the Create URL address section of the Settings tab. This ensures that any community members who have bookmarked the page with a previous URL will be redirected to the page with its new URL path or Page name.

If you move a page with child pages, all of those pages will be moved into the new section with the parent page. Once you Publish the parent page the URLs and URL paths of the child pages will be updated. In the meantime, all previous links will be stored under the Create URL address section in the Settings tab of the page, so there will be no broken links.

Was this article helpful?
1 out of 5 found this helpful