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
- .htaccess redirect 403 error files to 404 error document
- Users are able to access a protected page using the direct link. How do I create a redirect?
- How to redirect an incoming request to specific serverName to different server in apache2?
- .htaccess file making new domain redirect to my original domain
- Redirecting console output in python
- htaccess www to non-www for subfolders
- htaccess redirect url with multiple folder
- How to wait until page redirected using httpwebrequest VB.Net
- The page isn't redirecting properly when I logout
- How to redirect to different domain in Slim framework of PHP?
- How to remove subdirectory using rewriterule with non-www redirection
- Button Submit false works, but not the redirecting
- How to setup a general 301 redirect that will ignore the ending url string
- Redirect URLs using Redirect component or htacess
- python scrapy login redirecting problems
Related Questions in DRUPAL
- Drupal access control to custom user profile page
- How to list all child pages of current parent page in drupal 7?
- MariaDB/MySQL all of a sudden crashed and won't restart
- Drupal location module shows only a portion of Gmap on node page
- How to add a select collection type select list to field collection
- Drupal7 modified user login no effect?
- Drupal AngularJS ajax simple ng-repeat update
- Drupal: Access A Field in hook_views_query_alter()
- Drupal Webform : set SCORE on each SELECT Options?
- Register new user as authenitcated user in drupal using xml-rpc
- Drupal domain access auto create content
- How to display sibling pages except current page in drupal 7?
- how to merge entity reference relationship field value
- Drupal print breaks when rendering a region
- All files and folders are not being listed in the imce file browser in Drupal 7
Related Questions in SUBDOMAIN
- About HTTP_HOST & PHP_SELF
- JavaScript's document.cookie does not replace cookie in the subdomain
- How to see our shop URL in webkul magento extension
- HAProxy Redirects Of Domain & Domain w/Subdomains
- Sub domain "www" not showing up on sub domain url
- Symfony2 + FOSUserBundle + few subdomains
- Redirect website to another website if blocked in particular region
- Regex: How to expand regex for domain name to include domains of type a.b.c.d?
- 301 redirect from subdomain to domain using Plesk
- Steering assistance subdomain, How should .htaccess
- Htaccess adding contents of shared file system in url
- .htaccess redirect everything
- Multiple subdomains to same address
- multi stores in magento root directory not correct
- How to route meteor app dynamically on x.myapp.com where x is dynamic?
Related Questions in LOCALE
- Laravel: Locale Session: Controller gets Parameter to change it but it cant. U have to hardcode it
- Same store information returning in multi-store in observer Magento
- CentOS 7 Docker Image and locale compilation
- Java 8 - Locale lookup behavior
- "Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale." on OS X
- Get languages my app supports android
- Get dates from AUT?
- Change locale in android app (onto Hindi)
- PHP SoapClient get: ServerCan't find bundle for base name
- Explain Symfony's "sticky" locale event listener
- Is it bad that LANG and LC_ALL are empty when running `locale -a` on OS X Yosemite?
- JSpinner and double with dot or comma as separator
- Formatting number in European format with two decimals
- symfony2: how to parameter localization so we can have 2 languages?
- Symfony2: local changes for same twig view
Related Questions in EXTERNAL-URL
- Redirect to external URL in JSF
- Merge .png images from external url
- Javascript opening new window with external URL (Django)
- How can I link ion-card to external url dynamically
- Cordova - Load External URL content in app takes too much time
- AWS EC2 is able to connect to external traffic ONLY with IP. DNS does not work
- Modal External Url improperly redirecting
- Convert typo3 internal url to external url
- htaccess redirect subdomain AND subdirectory to external url
- Reactjs post form data to external payment page URL
- subdomain redirect to extern url path with keeping the name of subdomain
- who to populate select with curl http response from php function via ajax?
- Linking a class member's type to an external URL in doxygen
- how to allow insecure content to be displayed on page
- Unable to Access GitLab via External Server URL Instead of Localhost
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 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?