Link to manage subscriptions on content pages

Created on 14 December 2023, over 1 year ago
Updated 22 January 2024, over 1 year ago

Problem/Motivation

Hi there. I'm upgrading a website from Drupal 9 to Drupal 10. In Drupal 9, version 3.0.0-beta5 of Simplenews is used and on one of the content pages, there is a link with the following structure: /newsletter/subscriptions

This link takes any user to the effective URL for the subscription management page, which would be: /user/1/simplenews

In Drupal 10, version 4.0.0-beta1 is used and this option simply does not exist and the link returns a 404 page. It turns out that this link was inserted on other pages as well.

I tried testing the link in the content with some token, but I didn't find any module that supported tokens in the content pages themselves and this solution didn't work.

I think redirection should be present in this version too. Is there any solution to this issue?

Steps to reproduce

Install Drupal
Enable and configure Simplenews
Create some content with a link to your subscription management page: /newsletter/subscriptions
Save the page, click the link and... Does not display the correct page.

Proposed resolution

Create a link that can be made available throughout the site and that is capable of redirecting users to the correct page

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

4.0

Component

Code

Created by

🇧🇷Brazil astutonet Sao Paulo, SP

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

Comments & Activities

Production build 0.71.5 2024