Problem/Motivation

When using a node with an URL alias as frontpage, is the module telling the overlay to use the full URL including URL alias as frontpage URL (e.g. http://www.example.com/my-fancy-frontpage). When Siteimprove is crawling the site are they crawling http://www.example.com and not the full path including the URL alias.

Steps to reproduce

  1. Create a new node and add a URL alias
  2. Configure Drupal to use your new node as frontpage
  3. Check which Siteimprove URL is outputted in the Drupal JavaScript object.

Proposed resolution

When outputting the URL check if the actual page / route is a frontpage. If yes, then output both the frontpage URL and the full URL including alias in the JavaScript object. Use \Drupal::service('path.matcher')->isFrontPage(); to check if the current URL is the frontpage.

Comments

beltofte created an issue. See original summary.

  • bartvig committed 79482d2 on 8.x-1.x
    Issue #3175764: Added urls to domains if the user is on frontpage.
    
bartvig’s picture

Status: Active » Fixed

This issue is fixed in version 8.x-1.6.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

beltofte’s picture

Version: 8.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Active

Need backport to D7.

  • beltofte committed dbdcca0 on 7.x-1.x
    Issue #3175764 by beltofte: Overlay use alias of frontpage node and not...
beltofte’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.