Learn the difference between human-readable URLs (HRUs) and Globally Unique Identifiers (GUIDs). Understand how to use them to create positive navigation experiences for users.
CMS Lite creates two web addresses for each page or asset:
Both HRUs and GUIDs lead to the same page or asset, but each serves different purposes. Learn about the risks of changing a page or asset's HRU.
A Globally unique identifier (GUID) is a stable web address that doesn’t change, even when the page or asset is renamed or moved.
A human-readable URL (HRU) is a web address that uses meaningful words, making it easy to read and understand. HRUs can be changed, but when they are, the old HRU will no longer link to the page or asset.
Since human-readable URLs (HRUs) can change over time, it's usually best to use the permanent GUID link.
Use the GUID when you are:
This creates a stable link that won't break if the page or asset is moved or renamed.
Use the HRU when you are:
All gov.bc.ca pages and assets hosted on CMS Lite have GUIDs. There are many ways to find the GUID:
When linking to a page or asset from a page in CMS Lite:
In a web browser, the Share icon is available in the bottom-right corner of every webpage hosted on CMS Lite, with the exception of the home page.
If you want to link to a specific section of the page, you must manually add the anchor (for example: #anchor-name) to the end of the pasted GUID.
This method is not available for assets.
HRUs for pages are based on the page's location within the website’s structure. The URL is formed by combining:
For example, the page HRU 'https://www2.gov.bc.ca/gov/content/justice/human-rights' is formed from the following paths:
HRUs for assets are formed by combining:
The HRU 'https://www2.gov.bc.ca/assets/gov/government/services-for-government/icons/headericon.png' is created by combining:
When moving a published page or changing its page path name, use extreme caution. You may break links to the page.
A webpage's human readable URL (HRU) will change when you:
When an HRU changes, any links to the page that using the the old HRU will no longer work. This can affect:
Note: Links to the page using the GUID will remain unaffected. Unrelated links on your webpage will also not be affected.
Child pages inherit their URLs from their parent pages. If you change the HRU of a parent page, the HRUs of all its child pages will also change.
A child page is a page that is placed under another page (parent page). For example:
Content editors can update the page path on the Settings tab. When you do this, consider the following:
The page path (on the Settings tab on the Topic template) has a restricted character set:
For example: 'Programmes de langue française' will be converted to 'programmes-de-langue-fran-aise'
After updating the page path and selecting 'Save', the system will automatically validate the HRU to ensure HRU is unique.
When creating a page, consider shortening the page path to make the HRU easier to type, share, and reduce user error. For example:
Changing the HRU of a published page can break links to the page and its child pages. To minimize this risk:
A page's Title and Nav Title does not affect its Human Readable URL (HRU). The HRU is based on the page path, not the title.
When you move or modify assets and asset folders, the Human Readable URL (HRU) will change, which may cause broken links.
An asset's HRU will change when you:
Any links to the asset that used the former HRU will no longer work. Affected links may include:
Links to the asset using the GUID will remain unaffected.
For proper database association:
It is important to use caution when modifying asset folders, including moving the published folder or changing the folder name.
Moving or renaming a folder changes the HRUs for all assets within the folder and all its nested folders. The old HRU links to assets within the folder and subfolders will no longer work. This can create broken links in bookmarks, documents, and other pages.
Renaming or moving an asset folder updates the Human Readable URL immediately in QA, PROD, and the database.
When linking to a GUID, CMS Lite will display the GUID as an ID instead of a full web address. For example:
Even though the GUID displays as an ID in the content editor, the link will work correctly on the published webpage.
If you copy content from CMS Lite, the GUID link will not include the "gov.bc.ca/" domain. When pasted into a Word document or another application, the computer will convert the link to a local file path, causing it to malfunction when pasted back into CMS Lite.
To avoid this issue, either:
If you require a simple URL, submit your simple URL request to the Joint Working Group.
Simple URLs are short, easy-to-remember webpage addresses hosted on gov.bc.ca. They are typically used for marketing and print materials. For example: