Drupal is up and running but how do I ...?

Basic page: how to disable "Test" tab? (caused by Webform to prepopulated test data)

Hello,

since 1 hour I'm working on an article with a Webform, but now a "Test" tab and a "View" tab appeared on the website and I don’t have an idea why.

"Test" tab message

"The below webform has been prepopulated with custom/random test data. When submitted, this information will still be saved and/or sent to designated recipients."

I was only building the Webform, not doing something in the settings...

What's the standard Drupal way to pass a return url to a form?

The scenario is simple. I've constructed a Link object whose url points to an add form. I need a way to pass a return url to the add form so that proper redirection can happen after the add form is submitted

Using Url parameters

Passing a url (complete with route/parameters) doesn't work. For instance, the code

Url $add_url = Url::fromRoute(add_form_route, [], [

'query' => [

'return_url' => $return_url->toString()

Drupal 10 site keeps saying I have a security issue

My installation on 10.1.6 throws an error at me that says that I'm vulnerable or something to this security issue:

SA-CORE-2013-003 - Drupal core - Multiple vulnerabilities
https://www.drupal.org/forum/newsletters/security-advisories-for-drupal-...

But that CVE is only for v6 and v7. So I'm not sure what's broken in 10.1.6. 

Reporting Tool

Does anyone over here know if we have any reporting kind of tool available for drupal for better reporting of PHPUnit automated tests?

[Solved] JSONAPI. Entity with image field. Get entity and image URL in one request

Hi All,

I have an content entity with an image field. I use JSONAPI to request data from the content entity to my app. Is there a way I can get entity data and image field URL in one request. Or do I have to get content entity in one request and then a new request against the file:file entity to get the URL of the image?

I looked at FieldEnhance for the JSONAPI Extra module but so far with no luck!

Google Analytics Report API setup

Hello. We are a Japanese IT company developing a document publication site using Drupal for a public agency.

On this site, we intended to use the Google Analytics Report API to enable administrators to check the site's access status. However, it is not functioning correctly, so we have some questions regarding its setup.

We have created an account and property on the Google Analytics Admin page. All permissions are set to Administrator.

Pages

Subscribe with RSS Subscribe to RSS - Post installation