Kony Quantum is now HCL Volt MX. See Revised Terminology. Current Quantum users, see the important note about API naming.
Release:
Search Engine Optimization for an Adaptive Web or Responsive Web app
Volt MX Iris supports search engine optimization (SEO) for Adaptive Web (single-page) apps and Responsive Web apps, making their cached web pages discoverable by search bots and spiders, such as Googlebot.
Implementing SEO in an Adaptive Web or Responsive Web app involves the following tasks. Once you have completed them, building the app optimizes it for search engines.
Based on WebKit, PhantomJS is a headless web page browser that pre-renders the HTML of your Adaptive Web or Responsive Web app so that its pages are accessible to search bots. To download PhantomJS, see the Download page on the PhantomJS web site.
Note: After installing PhantomJS, you may need to ensure that its installation location is added to your computer’s PATH environment variable.
Create an SEO Configuration File
This .json file provides properties to PhantomJS for pre-rendering an SPA’s HTML. If both the SEO configuration file and sitemap.xml define values for properties of the same name, the values defined in the SEO configuration file to precedence over those in sitemap.xml.
You specify the location of the SEO configuration file in the project settings, as described in Enable SEO in Volt MX Iris.
Important: The extension of the SEO configuration file must be .json. For example: seo.json
SEO Configuration File Properties
The properties that can be defined in the SEO configuration file are as follows:
Property
Description
baseurl
Provides you the option of changing the domain name or IP address of the published server specified in sitemap.xml.
port
Provides you the option of changing the port of the published server specified in sitemap.xml.
channel
Defines the channel(s) for which you want to run SEO. Possible values are:mobiledesktopwebboth
maxiterations
Each page is fetched multiple times until the data ready flag is set, otherwise, the build can fail. The default value is 5.
contextpath
Provides you the option of changing the contextpath specified in sitemap.xml.
SEO Configuration File Example
The following is an example of an SEO Configuration file.
Create Sitemap xml
Using the Sitemap Protocol, the sitemap for an SPA is an XML file that lists the SPA’s various URLs, providing search bots a means of cataloging and listing them in search results.
In addition to URLs, a sitemap can indicate how often the content of a given URL changes, when it was last updated, and its importance relative to other URLs in the app.
A sitemap file always has the file name sitemap.xml.
You specify the location of the sitemap file in the project settings, as described in Enable SEO in Volt MX Iris.