Oops, something went wrong error when tring to add non-existing node page as source

Created on 21 February 2024, 10 months ago
Updated 25 February 2024, 10 months ago

Problem/Motivation

When user tries to create new rediect, where source path is in form "node/xxxx" where xxxx is non existing node's nid I'm getting "Oops, something went wrong. Check your browser's developer console for more details. " error.

The stack track of browser console:

message: '\nAn AJAX HTTP error occurred.\nHTTP Result Code: 404\nDebugging information follows.\nPath: https://en.redacted.docker.localhost/admin/config/search/redirect/add?ajax_form=1\nStatusText: error\nResponseText: {"message":"The \\u0022node\\u0022 parameter was not converted for the path \\u0022\\/node\\/{node}\\u0022 (route name: \\u0022entity.node.canonical\\u0022)"}'
ā€‹
name: "AjaxError"
ā€‹
stack: "@https://en.redacted.docker.localhost/core/misc/ajax.js?v=10.1.8:196:32\n@https://en.REDACTED.docker.localhost/core/misc/ajax.js?v=10.1.8:1889:3\n"

Steps to reproduce

1. As a administrator, visit admin/config/search/redirect/add
2. Then put phony source (eg. node/12345678)
3. key TAB (change focus on field)
4. Then error appear.

Expected behaviour

I assume that there should be no warning here or it should be not that confusing.

šŸ› Bug report
Status

Needs review

Version

1.9

Component

Code

Created by

šŸ‡µšŸ‡±Poland jsobiecki Wroclaw

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024