Problem/Motivation

After creating the new SEO URL link InboundPathProcessor doesn't work immediately.
We need to clear the cache for that.

Proposed resolution

Add hook_ENTITY_TYPE_insert and implement seo_urls_clear_cache()

Issue fork seo_urls-3351367

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

HitchShock created an issue. See original summary.

  • HitchShock committed 501de44d on 1.0.x
    [#3351367] Implemented seo_urls_clear_cache() for term_insetr hook
    
hitchshock’s picture

Status: Active » Fixed

Implemented the following code:

/**
 * Implements hook_ENTITY_TYPE_insert().
 */
function seo_urls_taxonomy_term_insert(EntityInterface $entity) {
  seo_urls_clear_cache($entity);
}

Tested the behavior.
InboundPathProcessor and OutboundPathProcessor are working immediately after creating a new SEO Url now.

Status: Fixed » Closed (fixed)

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