in order to have the locale prefix at the beginning of the url instead of the end of the url, i have set in "admin/config/regional/language/detection/url" the part of the url that determines language to domain.
english: en.mysite.localhost
francais: fr.mysite.localhost
But when I try to delete the translation "fr" of a node Article en.mysite.localhost/node/7/delete
I have an issue and the current error: “Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.”
Someone knows how to work around the problem?
I have tried to edit the settings.php and set trusted_host_patterns to ['.*'] but not working.
I noticed also that with this configuration, the cookie of the admin loggeed in en.mysite.localhost is not the same with the cookie of the admin logged in fr.mysite.localhost and so not able to switch between 2 languages with the same cookie, i have to logg twice. maybe this configuration with the language detection by domain is not the good thing for my needs (get the locale prefix at the beguinning of the url)
Thanks in advance for your help.
Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it
1.7k Views Asked by Roberto Q At
0
There are 0 best solutions below
Related Questions in REDIRECT
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Redirect Users to another website using GAS
- Hyperlink doesn't redirect while others do
- 301 Redirect to assimilate one website into another
- How to make common post or page for external links in wordpress website using php or any language
- What is the best strategy to correct a referenced subdomain development website damaging my production seo
- DocuSign integrated login fails when MFA is enabled
- Domain Still Redirecting Despite Transferring Out of Godaddy
- How I can prevent the redirections in API using middleware on Laravel 11?
- How redirect to current page after login (Flask)
- Redirect to another site but show the original URL in browser
- How to redirect to another page eg main.py after user fill in and click register button and store it on .ini local database on python using kivy
- Error 302: ERR_TOO_MANY_REDIRECTS in Prestashop Back Office
- Next.js Middleware for Session Authentication Redirects: Errors Encountered
- Sharepoint document library URL Rewrite
Related Questions in DRUPAL
- Drupal image styles DivisionByZeroError
- Drupal: MQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user when accessing any page with a form
- How can I add taxonomy to uploaded files through an api in Drupal 10
- How to retrieve taxonomy term name in url instead of id in a drupal view?
- Save button not displaying in drupal 9
- how to do ajax callback in custom block, which will fetch records from database dynamically in Drupal 10?
- Why are my form fields, built using Drupal Next.js Webforms, not displaying the Help Text?
- Multiple replacement / substitute NGgram string SOLR 8.6
- Drupal 9 Bartik (default theme) carried over from old Drupal seems to have previously worked but no longer renders HTML properly
- Getting no State error with simplesamlphp library v 2.13
- Using the Drupal Cache API for Drupal Entity Caching
- drupal version issue drupal 8 to drupal 10
- Why does my pure CSS parallax scrolling stop working on completion of page loading in Drupal 9
- Getting the value from a multi-select list PHP in Drupal site
- Parent menu link opens children when clicked, instead of going to link (Drupal)
Related Questions in SUBDOMAIN
- Assigned A record for Subdomain in Cloud DNS to Compute Engine VM instance but not propagated/resolved yet
- Download a website using wget command to include any subdomain
- How to assign a shared ssl certificate for subdomain in Plesk
- How to parse subdomains from URLs in FastAPI?
- WordPress Multisite Subdomain showing error 404
- How to use subdomains in laravel app on local ubuntu?
- Troubleshooting incorrect content on mobile redirect
- HTTPS / Secure site failure for sub domains - who's the culprit?
- use RewriteMap to redirect domains to subdomains
- Separate subdomains on one GitHub page
- Method not allowed status code when targeting subdomain
- How to create a folder on windows server dynamically via server panel
- How do I serve my Node.js application on a subdomain?
- exim4: extract domain from subdomain
- Wordpress multisite subdomain gives error 404
Related Questions in LOCALE
- Set Netbeans Console to English
- How can I copy a date from excel to powerpoint through vba and forcing english format regardless of local formatting?
- Formatting very large numbers to local settings in javascript
- Accessing locale in nextJS 14 App Directory
- GetDateFormatEx returns a non-zero value but the buffer returned by it is faulty
- Remove grouping from numpunct of std::locale
- Fullcalendar locale doesn't work in Chorme and Edge
- Rewriting URL using Locale in Next JS 13
- Javascript: Date string in different locale to Timestamp
- How to parse country code from RFC 5646 locale string?
- Wrong Hungarian (hu_HU) sort order
- Change language in keycloak login page
- After updating application locale of an android app, toast message is showing in previous language
- How to set default stings.xml using AppCompatDelegate in android?
- How to set language for a Vonage's sms in Laravel?
Related Questions in EXTERNAL-URL
- Unable to Access GitLab via External Server URL Instead of Localhost
- Convert typo3 internal url to external url
- AWS EC2 is able to connect to external traffic ONLY with IP. DNS does not work
- Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it
- Cordova - Load External URL content in app takes too much time
- How to redirect to external url onClick? in React
- Big Cartel - Possible to immediately redirect product page to external URL?
- How to redirect asp .net core API to external URL from angular SPA client
- How to Block External Static Resource During Page Load with WP
- subdomain redirect to extern url path with keeping the name of subdomain
- Reactjs post form data to external payment page URL
- Google site can not access correctly external url
- Django - External URL Link
- Passing sensitive and shorter data onto external links
- How can I link ion-card to external url dynamically
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?