Redirect from node/* is deleted, if I delete the node.

Created on 14 August 2012, almost 13 years ago
Updated 20 May 2025, about 5 hours ago

Hi,
I am using the redirect module to create redirects for some old image nodes that were left over from D6.
Typically, every such node has an alias and a system path. I want to create redirects for both of them, and then delete the node. Destination will be a relevant taxonomy term page.

Unfortunately, it seems that the redirect created for node/123 is removed when I run node_delete().
On the other hand, the redirect created for the node alias is still alive.

Is this intended behavior?

I could of course first delete the node and then create the redirect. But this seems wrong to me. I only want to delete once I know that the redirect has been safely created.

Thanks!

πŸ’¬ Support request
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany donquixote

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