Problem/Motivation

After installing Drupal CMS 2 using Mercury site template, you'll see an error on Utility Pages related to the heading component when URL value is "No URL":

Twig\Error\RuntimeError occurred during rendering of component f08be9dc-e328-4cb7-9499-df6db9bd8900 in Content template Utility page content items — Full content view (node.page.full): An exception has been thrown during the rendering of a template ("[mercury:heading/url] Invalid URL format. The provided value is: "No URL".") in "mercury:heading" at line 1.

Steps to reproduce

  1. Install Drupal CMS 2.0.2
  2. Open the default Privacy Policy page /privacy-policy

Proposed resolution

Remove the "No URL" default value in the heading url.

Issue fork mercury-3578624

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Issue fork drupal_cms-3578624

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

roaguicr created an issue. See original summary.

roaguicr’s picture

Adding a MR to revert the changes just in the heading component, this will solve the "default" error on DrupalCMS using Mercury starter.

pameeela’s picture

Title: 'format: uri-reference' in heading component 'url' prop is causing a component error » Fix utility page content template config
Project: Mercury Theme » Drupal CMS development repository
Version: 1.0.2 »
Component: Templates/PHP » General
Issue summary: View changes

We'll want to fix this in the starter config, we want the uri format because it provides an autocomplete link widget.

pameeela changed the visibility of the branch 3578624-fix-heading-no-url to hidden.

pameeela’s picture

Status: Active » Needs review

phenaproxima made their first commit to this issue’s fork.

phenaproxima’s picture

Component: General » Starter recipe
Status: Needs review » Fixed

Merged into 2.x and cherry-picked to 2.0.x.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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