简体   繁体   English

登录后将Joomla 2.5重定向到请求的页面

[英]Joomla 2.5 redirect to requested page after login

In joomla 2.5 user's are taken to predefined page after they have logged-in. 在joomla 2.5中,用户登录后即被带到预定义页面。 But i need to redirect users to the previous page after they have logged-in, i have tried to search for it every where but i am unable find proper solution explaining what core file i need to modify ? 但是我需要在用户登录后将用户重定向到上一页,我尝试在所有位置进行搜索,但是找不到合适的解决方案来解释需要修改的核心文件?

All you need is an article with a little piece of javascript to browse the history of the user and call the page before the login form. 您所需要的只是一篇带有少量javascript的文章,以浏览用户的历史记录并在登录表单之前调用该页面。 Redirect the user on it on log in. 在登录时重定向用户。

If you have a menue item (User/Login Form), there is, on the right hand side of the screen, a tab called Basic Options. 如果您有菜单项(“用户/登录表单”),则在屏幕的右侧有一个名为“基本选项”的选项卡。 The first field is called "Login Redirect". 第一个字段称为“登录重定向”。 Put the article's URL there. 将文章的网址放在此处。

If you use the module: Again in the tab "Basic Options", you can redirect to Any menue item you want, so set a menue item (it has not to be actually showing up somewher) for the article 如果您使用该模块:在“基本选项”选项卡中,您可以重定向到所需的任何菜单项,因此请为该文章设置一个菜单项(该菜单项不必实际显示)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM