Add redirect module
This commit is contained in:
parent
219cee9477
commit
279f344be6
6 changed files with 691 additions and 1 deletions
|
@ -24,6 +24,7 @@
|
|||
"drupal/markdown_easy": "^1.0",
|
||||
"drupal/paragraphs": "^1.19",
|
||||
"drupal/pathauto": "^1.13",
|
||||
"drupal/redirect": "^1.11",
|
||||
"drupal/tome": "^1.13",
|
||||
"drupal/twig_tweak": "^3.4",
|
||||
"drupal/weight": "^3.6",
|
||||
|
|
58
composer.lock
generated
58
composer.lock
generated
|
@ -4,7 +4,7 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "a6e5468e964c8731365a41d000ffbd94",
|
||||
"content-hash": "65c9a634f0c9f8b658fc062df72b47fc",
|
||||
"packages": [
|
||||
{
|
||||
"name": "asm89/stack-cors",
|
||||
|
@ -2533,6 +2533,62 @@
|
|||
"documentation": "https://www.drupal.org/docs/8/modules/pathauto"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "drupal/redirect",
|
||||
"version": "1.11.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://git.drupalcode.org/project/redirect.git",
|
||||
"reference": "8.x-1.11"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://ftp.drupal.org/files/projects/redirect-8.x-1.11.zip",
|
||||
"reference": "8.x-1.11",
|
||||
"shasum": "7df8b3524bbde07d254216039636947a689140ef"
|
||||
},
|
||||
"require": {
|
||||
"drupal/core": "^9.2 || ^10 || ^11"
|
||||
},
|
||||
"type": "drupal-module",
|
||||
"extra": {
|
||||
"drupal": {
|
||||
"version": "8.x-1.11",
|
||||
"datestamp": "1737382886",
|
||||
"security-coverage": {
|
||||
"status": "covered",
|
||||
"message": "Covered by Drupal's security advisory policy"
|
||||
}
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packages.drupal.org/8/downloads",
|
||||
"license": [
|
||||
"GPL-2.0-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "berdir",
|
||||
"homepage": "https://www.drupal.org/user/214652"
|
||||
},
|
||||
{
|
||||
"name": "dave reid",
|
||||
"homepage": "https://www.drupal.org/user/53892"
|
||||
},
|
||||
{
|
||||
"name": "kristen pol",
|
||||
"homepage": "https://www.drupal.org/user/8389"
|
||||
},
|
||||
{
|
||||
"name": "pifagor",
|
||||
"homepage": "https://www.drupal.org/user/2375692"
|
||||
}
|
||||
],
|
||||
"description": "Allows users to redirect from old URLs to new URLs.",
|
||||
"homepage": "https://www.drupal.org/project/redirect",
|
||||
"support": {
|
||||
"source": "https://git.drupalcode.org/project/redirect"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "drupal/robotstxt",
|
||||
"version": "1.6.0",
|
||||
|
|
|
@ -52,6 +52,7 @@ module:
|
|||
page_cache: 0
|
||||
path: 0
|
||||
path_alias: 0
|
||||
redirect: 0
|
||||
robotstxt: 0
|
||||
search: 0
|
||||
seo_checklist: 0
|
||||
|
|
9
config/sync/redirect.settings.yml
Normal file
9
config/sync/redirect.settings.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
_core:
|
||||
default_config_hash: FEwQLW1wXW7fiJdG1B2bxW1c_-k6w-r-3V3bSsW6PqM
|
||||
auto_redirect: true
|
||||
default_status_code: 301
|
||||
passthrough_querystring: true
|
||||
warning: false
|
||||
ignore_admin_path: false
|
||||
access_check: false
|
||||
route_normalizer_enabled: true
|
16
config/sync/system.action.redirect_delete_action.yml
Normal file
16
config/sync/system.action.redirect_delete_action.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
uuid: 3f0e25ca-6d32-4f97-bdba-d969a17d1d2c
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- redirect
|
||||
enforced:
|
||||
module:
|
||||
- redirect
|
||||
_core:
|
||||
default_config_hash: vcnRZRvBqTbK3nZ2M4_lKPlEGc8GjPzgaqapYUfyX8M
|
||||
id: redirect_delete_action
|
||||
label: 'Delete redirect'
|
||||
type: redirect
|
||||
plugin: redirect_delete_action
|
||||
configuration: { }
|
607
config/sync/views.view.redirect.yml
Normal file
607
config/sync/views.view.redirect.yml
Normal file
|
@ -0,0 +1,607 @@
|
|||
uuid: c9a6f193-89fc-471e-8054-39e0fb96d7f3
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- link
|
||||
- redirect
|
||||
- user
|
||||
_core:
|
||||
default_config_hash: I9VqfbwK5ZyKzL7810d0fswaadU6riFT3kPL0yxcpLs
|
||||
id: redirect
|
||||
label: Redirect
|
||||
module: views
|
||||
description: 'List of redirects'
|
||||
tag: ''
|
||||
base_table: redirect
|
||||
base_field: rid
|
||||
display:
|
||||
default:
|
||||
display_plugin: default
|
||||
id: default
|
||||
display_title: Master
|
||||
position: 0
|
||||
display_options:
|
||||
access:
|
||||
type: perm
|
||||
options:
|
||||
perm: 'administer redirects'
|
||||
cache:
|
||||
type: tag
|
||||
options: { }
|
||||
query:
|
||||
type: views_query
|
||||
options:
|
||||
disable_sql_rewrite: false
|
||||
distinct: false
|
||||
replica: false
|
||||
query_comment: ''
|
||||
query_tags: { }
|
||||
exposed_form:
|
||||
type: basic
|
||||
options:
|
||||
submit_button: Filter
|
||||
reset_button: true
|
||||
reset_button_label: Reset
|
||||
exposed_sorts_label: 'Sort by'
|
||||
expose_sort_order: true
|
||||
sort_asc_label: Asc
|
||||
sort_desc_label: Desc
|
||||
pager:
|
||||
type: full
|
||||
options:
|
||||
items_per_page: 50
|
||||
offset: 0
|
||||
id: 0
|
||||
total_pages: null
|
||||
tags:
|
||||
previous: '‹ previous'
|
||||
next: 'next ›'
|
||||
first: '« first'
|
||||
last: 'last »'
|
||||
expose:
|
||||
items_per_page: false
|
||||
items_per_page_label: 'Items per page'
|
||||
items_per_page_options: '5, 10, 25, 50'
|
||||
items_per_page_options_all: false
|
||||
items_per_page_options_all_label: '- All -'
|
||||
offset: false
|
||||
offset_label: Offset
|
||||
quantity: 9
|
||||
style:
|
||||
type: table
|
||||
options:
|
||||
grouping: { }
|
||||
row_class: ''
|
||||
default_row_class: true
|
||||
override: true
|
||||
sticky: false
|
||||
caption: ''
|
||||
summary: ''
|
||||
description: ''
|
||||
columns:
|
||||
redirect_source__path: redirect_source__path
|
||||
redirect_redirect__uri: redirect_redirect__uri
|
||||
status_code: status_code
|
||||
language: language
|
||||
created: created
|
||||
operations: operations
|
||||
info:
|
||||
redirect_source__path:
|
||||
sortable: true
|
||||
default_sort_order: asc
|
||||
align: ''
|
||||
separator: ''
|
||||
empty_column: false
|
||||
responsive: ''
|
||||
redirect_redirect__uri:
|
||||
sortable: true
|
||||
default_sort_order: asc
|
||||
align: ''
|
||||
separator: ''
|
||||
empty_column: false
|
||||
responsive: ''
|
||||
status_code:
|
||||
sortable: true
|
||||
default_sort_order: asc
|
||||
align: ''
|
||||
separator: ''
|
||||
empty_column: false
|
||||
responsive: ''
|
||||
language:
|
||||
sortable: true
|
||||
default_sort_order: asc
|
||||
align: ''
|
||||
separator: ''
|
||||
empty_column: false
|
||||
responsive: ''
|
||||
created:
|
||||
sortable: true
|
||||
default_sort_order: asc
|
||||
align: ''
|
||||
separator: ''
|
||||
empty_column: false
|
||||
responsive: ''
|
||||
operations:
|
||||
sortable: false
|
||||
default_sort_order: asc
|
||||
align: ''
|
||||
separator: ''
|
||||
empty_column: false
|
||||
responsive: ''
|
||||
default: created
|
||||
empty_table: false
|
||||
row:
|
||||
type: fields
|
||||
fields:
|
||||
redirect_bulk_form:
|
||||
id: redirect_bulk_form
|
||||
table: redirect
|
||||
field: redirect_bulk_form
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
label: ''
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: false
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
action_title: 'With selection'
|
||||
include_exclude: exclude
|
||||
selected_actions: { }
|
||||
entity_type: redirect
|
||||
plugin_id: redirect_bulk_form
|
||||
redirect_source__path:
|
||||
id: redirect_source__path
|
||||
table: redirect
|
||||
field: redirect_source__path
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
label: From
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: true
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
click_sort_column: path
|
||||
type: redirect_source
|
||||
settings: { }
|
||||
group_column: ''
|
||||
group_columns: { }
|
||||
group_rows: true
|
||||
delta_limit: 0
|
||||
delta_offset: 0
|
||||
delta_reversed: false
|
||||
delta_first_last: false
|
||||
multi_type: separator
|
||||
separator: ', '
|
||||
field_api_classes: false
|
||||
entity_type: redirect
|
||||
entity_field: redirect_source
|
||||
plugin_id: field
|
||||
redirect_redirect__uri:
|
||||
id: redirect_redirect__uri
|
||||
table: redirect
|
||||
field: redirect_redirect__uri
|
||||
entity_type: redirect
|
||||
entity_field: redirect_redirect
|
||||
plugin_id: field
|
||||
status_code:
|
||||
id: status_code
|
||||
table: redirect
|
||||
field: status_code
|
||||
entity_type: redirect
|
||||
entity_field: status_code
|
||||
plugin_id: field
|
||||
language:
|
||||
id: language
|
||||
table: redirect
|
||||
field: language
|
||||
entity_type: redirect
|
||||
entity_field: language
|
||||
plugin_id: field
|
||||
created:
|
||||
id: created
|
||||
table: redirect
|
||||
field: created
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
label: Created
|
||||
exclude: false
|
||||
alter:
|
||||
alter_text: false
|
||||
text: ''
|
||||
make_link: false
|
||||
path: ''
|
||||
absolute: false
|
||||
external: false
|
||||
replace_spaces: false
|
||||
path_case: none
|
||||
trim_whitespace: false
|
||||
alt: ''
|
||||
rel: ''
|
||||
link_class: ''
|
||||
prefix: ''
|
||||
suffix: ''
|
||||
target: ''
|
||||
nl2br: false
|
||||
max_length: 0
|
||||
word_boundary: true
|
||||
ellipsis: true
|
||||
more_link: false
|
||||
more_link_text: ''
|
||||
more_link_path: ''
|
||||
strip_tags: false
|
||||
trim: false
|
||||
preserve_tags: ''
|
||||
html: false
|
||||
element_type: ''
|
||||
element_class: ''
|
||||
element_label_type: ''
|
||||
element_label_class: ''
|
||||
element_label_colon: true
|
||||
element_wrapper_type: ''
|
||||
element_wrapper_class: ''
|
||||
element_default_classes: true
|
||||
empty: ''
|
||||
hide_empty: false
|
||||
empty_zero: false
|
||||
hide_alter_empty: true
|
||||
date_format: fallback
|
||||
custom_date_format: ''
|
||||
timezone: ''
|
||||
entity_type: redirect
|
||||
entity_field: created
|
||||
plugin_id: date
|
||||
operations:
|
||||
id: operations
|
||||
table: redirect
|
||||
field: operations
|
||||
entity_type: redirect
|
||||
plugin_id: entity_operations
|
||||
filters:
|
||||
redirect_source__path:
|
||||
id: redirect_source__path
|
||||
table: redirect
|
||||
field: redirect_source__path
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
operator: contains
|
||||
value: ''
|
||||
group: 1
|
||||
exposed: true
|
||||
expose:
|
||||
operator_id: redirect_source__path_op
|
||||
label: From
|
||||
description: ''
|
||||
use_operator: false
|
||||
operator: redirect_source__path_op
|
||||
identifier: redirect_source__path
|
||||
required: false
|
||||
remember: false
|
||||
multiple: false
|
||||
remember_roles:
|
||||
authenticated: authenticated
|
||||
anonymous: '0'
|
||||
administrator: '0'
|
||||
operator_limit_selection: false
|
||||
operator_list: { }
|
||||
is_grouped: false
|
||||
group_info:
|
||||
label: ''
|
||||
description: ''
|
||||
identifier: ''
|
||||
optional: true
|
||||
widget: select
|
||||
multiple: false
|
||||
remember: false
|
||||
default_group: All
|
||||
default_group_multiple: { }
|
||||
group_items: { }
|
||||
entity_type: redirect
|
||||
entity_field: redirect_source
|
||||
plugin_id: string
|
||||
redirect_redirect__uri:
|
||||
id: redirect_redirect__uri
|
||||
table: redirect
|
||||
field: redirect_redirect__uri
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
operator: contains
|
||||
value: ''
|
||||
group: 1
|
||||
exposed: true
|
||||
expose:
|
||||
operator_id: redirect_redirect__uri_op
|
||||
label: To
|
||||
description: ''
|
||||
use_operator: false
|
||||
operator: redirect_redirect__uri_op
|
||||
identifier: redirect_redirect__uri
|
||||
required: false
|
||||
remember: false
|
||||
multiple: false
|
||||
remember_roles:
|
||||
authenticated: authenticated
|
||||
anonymous: '0'
|
||||
administrator: '0'
|
||||
operator_limit_selection: false
|
||||
operator_list: { }
|
||||
is_grouped: false
|
||||
group_info:
|
||||
label: ''
|
||||
description: ''
|
||||
identifier: ''
|
||||
optional: true
|
||||
widget: select
|
||||
multiple: false
|
||||
remember: false
|
||||
default_group: All
|
||||
default_group_multiple: { }
|
||||
group_items: { }
|
||||
entity_type: redirect
|
||||
entity_field: redirect_redirect
|
||||
plugin_id: string
|
||||
status_code:
|
||||
id: status_code
|
||||
table: redirect
|
||||
field: status_code
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
operator: '='
|
||||
value:
|
||||
min: ''
|
||||
max: ''
|
||||
value: ''
|
||||
group: 1
|
||||
exposed: true
|
||||
expose:
|
||||
operator_id: status_code_op
|
||||
label: 'Status code'
|
||||
description: ''
|
||||
use_operator: false
|
||||
operator: status_code_op
|
||||
identifier: status_code
|
||||
required: false
|
||||
remember: false
|
||||
multiple: false
|
||||
remember_roles:
|
||||
authenticated: authenticated
|
||||
anonymous: '0'
|
||||
administrator: '0'
|
||||
operator_limit_selection: false
|
||||
operator_list: { }
|
||||
is_grouped: true
|
||||
group_info:
|
||||
label: 'Status code'
|
||||
description: ''
|
||||
identifier: status_code
|
||||
optional: true
|
||||
widget: select
|
||||
multiple: false
|
||||
remember: false
|
||||
default_group: All
|
||||
default_group_multiple: { }
|
||||
group_items:
|
||||
1:
|
||||
title: '300 Multiple Choices'
|
||||
operator: '='
|
||||
value:
|
||||
value: '300'
|
||||
min: ''
|
||||
max: ''
|
||||
2:
|
||||
title: '301 Moved Permanently'
|
||||
operator: '='
|
||||
value:
|
||||
value: '301'
|
||||
min: ''
|
||||
max: ''
|
||||
3:
|
||||
title: '302 Found'
|
||||
operator: '='
|
||||
value:
|
||||
value: '302'
|
||||
min: ''
|
||||
max: ''
|
||||
4:
|
||||
title: '303 See Other'
|
||||
operator: '='
|
||||
value:
|
||||
value: '303'
|
||||
min: ''
|
||||
max: ''
|
||||
5:
|
||||
title: '304 Not Modified'
|
||||
operator: '='
|
||||
value:
|
||||
value: '304'
|
||||
min: ''
|
||||
max: ''
|
||||
6:
|
||||
title: '305 Use Proxy'
|
||||
operator: '='
|
||||
value:
|
||||
value: '305'
|
||||
min: ''
|
||||
max: ''
|
||||
7:
|
||||
title: '307 Temporary Redirect'
|
||||
operator: '='
|
||||
value:
|
||||
value: '307'
|
||||
min: ''
|
||||
max: ''
|
||||
entity_type: redirect
|
||||
entity_field: status_code
|
||||
plugin_id: numeric
|
||||
language:
|
||||
id: language
|
||||
table: redirect
|
||||
field: language
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
operator: in
|
||||
value: { }
|
||||
group: 1
|
||||
exposed: true
|
||||
expose:
|
||||
operator_id: language_op
|
||||
label: 'Original language'
|
||||
description: ''
|
||||
use_operator: false
|
||||
operator: language_op
|
||||
identifier: language
|
||||
required: false
|
||||
remember: false
|
||||
multiple: false
|
||||
remember_roles:
|
||||
authenticated: authenticated
|
||||
anonymous: '0'
|
||||
administrator: '0'
|
||||
reduce: false
|
||||
operator_limit_selection: false
|
||||
operator_list: { }
|
||||
is_grouped: false
|
||||
group_info:
|
||||
label: ''
|
||||
description: ''
|
||||
identifier: ''
|
||||
optional: true
|
||||
widget: select
|
||||
multiple: false
|
||||
remember: false
|
||||
default_group: All
|
||||
default_group_multiple: { }
|
||||
group_items: { }
|
||||
entity_type: redirect
|
||||
entity_field: language
|
||||
plugin_id: language
|
||||
sorts: { }
|
||||
title: Redirect
|
||||
header: { }
|
||||
footer: { }
|
||||
empty:
|
||||
area_text_custom:
|
||||
id: area_text_custom
|
||||
table: views
|
||||
field: area_text_custom
|
||||
relationship: none
|
||||
group_type: group
|
||||
admin_label: ''
|
||||
empty: true
|
||||
tokenize: false
|
||||
content: 'There is no redirect yet.'
|
||||
plugin_id: text_custom
|
||||
relationships: { }
|
||||
arguments: { }
|
||||
display_extenders: { }
|
||||
filter_groups:
|
||||
operator: AND
|
||||
groups:
|
||||
1: AND
|
||||
cache_metadata:
|
||||
contexts:
|
||||
- 'languages:language_content'
|
||||
- 'languages:language_interface'
|
||||
- url
|
||||
- url.query_args
|
||||
- user.permissions
|
||||
cacheable: false
|
||||
max-age: 0
|
||||
tags: { }
|
||||
page_1:
|
||||
display_plugin: page
|
||||
id: page_1
|
||||
display_title: Page
|
||||
position: 1
|
||||
display_options:
|
||||
display_extenders: { }
|
||||
path: admin/config/search/redirect
|
||||
cache_metadata:
|
||||
contexts:
|
||||
- 'languages:language_content'
|
||||
- 'languages:language_interface'
|
||||
- url
|
||||
- url.query_args
|
||||
- user.permissions
|
||||
cacheable: false
|
||||
max-age: 0
|
||||
tags: { }
|
Loading…
Add table
Add a link
Reference in a new issue