Import Taxonomy URL Alias

Created on 13 October 2020, over 4 years ago
Updated 26 November 2024, 3 months ago

How can I achieve this?

I was able to get the wp:category_nicename as URL Alias adding o worpress_categories.yml

      name: link
      label: Persistent path
      selector: wp:category_nicename

With this I get the nicename as the URL Alias, but I need to add /categories/NICENAME, how can I achieve this?

On the config file I added

  path/pathauto:
    -
      plugin: default_value
      default_value: 0
  path/alias:
    -
      plugin: str_replace
      source: link
      search: ''
      replace: '/blog'
    -
      plugin: str_replace
      search: /\/$/
      replace: ''
      regex: true
    -
      plugin: str_replace
      search: '/^(?=^\/\?)(.*)$/'
      replace: ''
      regex: true
πŸ’¬ Support request
Status

Needs review

Version

3.0

Component

Documentation

Created by

πŸ‡ͺπŸ‡ΈSpain uridrupal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024