![]() Thanks to Wim Leers for letting me know about it. UPDATE: It seems to this is a regression from Drupal 7 and there is an issue that would fix it. You can set the age to whatever you want. Most modern browsers obey this directive (IE9 does not) Header always set Strict-Transport-Security 'max-age63072000'. Have you had a similar need? Are there other things you are requested to do after login? Please share them in the comments. Another handy trick, if you have root access to Apache to alter your vhost directives is to add this to the SSL directive for the site. Log in or register to post comments Comment 17 danplaton4 Credit Attribution: danplaton4 commented 26 March 2020 at 10:30. When you move a piece of content to another section of your site or inadvertently. Learn about the products, people and history that make up Johnson & Johnson. The Drupal Redirect module redirects visitors from old URLs to new URLs. The project is waiting to be approved before promoting it to full project. Same issue on Drupal 8.8.1, Redirect 8.x-1.5, confirming patch 9 fixes. For over 135 years, we have maintained a tradition of quality and innovation. It a very small module that just does one thing and it does it well: it appends destination=/current/page to all the links pointing to /user/login effectively redirecting users to the page they were viewing before login. ![]() I have done that in my migration, and you can have a look at the source code at GitHub ( complete() section), if you want to have a look at an example. Other modules, and some combinations of them, were tested without success. To overwrite the existing redirection, you need to appropriately set rid of the object to pass to the funciton redirectsave(). Render View as you have it now, and when you click the article Title it'll send you to the external page. Sadly the Drupal 8 version of this module does not provide the functionality yet. Drupal 7 has drupalgoto () that would allow redirecting to an external url. 1 Answer Sorted by: 0 Method 1 Add a URL Redirect pointing from the 'node/' URL to your external URL. Login Destination used to do it in Drupal 7. Path Redirect allows you to specify a redirect from one path. Displaying duplicate content at multiple urls can cause a loss of search engine site ranking. This prevents content from being displayed on multiple urls when the path module is enabled. This seemed like a very common request so we looked for a contrib module that provided the functionality. Global Redirect searches for an alias of the current URL and does a 301 redirects to it if found. In a recent project a client wisely requested exactly that: whenever a user logs into the site, redirect them to the page they were before clicking the login link. ![]() Let's find out how to solve this in Drupal 8. When this happens people lose track of what they were doing and some might not even bother to go back. Have you ever been asked to log into a website while you are viewing a page? And after doing so you get redirected to some page other than the one you were reading? This is an obvious and rather common usability problem.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |