Child pages
  • [cms] Multiple URLs to single page, when "Short URL" is specified [5.2.2-B1]
Skip to end of metadata
Go to start of metadata

The "Short URL" field (in DB it's "FriendlyURL" field) of a page/category allows to specify alternative URL for accessing that page.

Unfortunately once visited user isn't redirected to canonical page URL and that makes Google think, that there is duplicate content on website (accessible from multiple urls) and decrease of Pagerank for given website.

Solution

  1. in the "CategoriesEventHandler::_parseFriendlyUrl" method, when url is considered as "Short URL" set a "is_friendly_url" parsed parameter to "$vars" variable
  2. in the "kHTTPQuery::AfterInit" when it's mod-rewrite mode and "is_friendly_url" url parameter is set, then do 301 (default) self-redirect

Related Tasks

INP-1664 - Getting issue details... STATUS