Expected behavior

I expect that if I enter a legitimate Pinterest board URL, media_entity_pinterest's field formatter will render it.

Actual behavior

If I enter a legitimate Pinterest board URL that contains the % symbol, the board is not rendered.

Steps to reproduce

  1. Log into a Pinterest account.
  2. Create a new board with the plus symbol + in the name, and save.
  3. Copy the resulting generated URL, which should contain %2B in it.
  4. Attempt to use this URL in a media_entity_pinterest field.

Results: board does not render.

Screenshots

Pinterest board with plus symbol in the name

Fix details

The regex patterns that validate Pinterest URLs do not allow for % in the board portion of the URL.

Board sections currently do allow for this and do not need to be modified.

Through testing, I have found that % is not allowed in user names, and so will not modify that pattern at this time.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

timcosgrove created an issue. See original summary.

timcosgrove’s picture

This adds support for % and test data for the 4 types of supported URLs.

timcosgrove’s picture

Status: Active » Needs review

  • bonus committed 543d6d8 on 8.x-2.x authored by timcosgrove
    Issue #3070119 by timcosgrove: Board URL fragments do not allow...
gg4’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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