New answers tagged

0 votes

How can I redirect node page for a content type to custom URL?

You can install Entity Redirect module That module provides a UI configurable redirect after saving a node or other entity and works for both Drupal 8, 9, 10. Provides four different types of ...
0 votes
Accepted

Stripe doesn't see API key after TrustedRedirectResponse

The problem was that I used $checkout_url = $checkout_session->baseUrl() . $checkout_session->instanceUrl(); Because that is https://api.stripe.com/v1/checkout/sessions/cs_test_... I needed to ...
  • 444
0 votes

How to redirect custom ajax form to external url with headers

No, you cannot set headers in the same way as you do in RedirectResponse() when using RedirectCommand in an AJAX callback. The reason is that RedirectCommand uses JavaScript to redirect the user to ...

Top 50 recent answers are included