Joomla 2.5 redirect to requested page after login - joomla

In joomla 2.5 user's are taken to predefined page after they have logged-in.
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. 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

Related

Wicket Submit BehaviorListener after RestartResponseExeption and Session replacement

I have a AjaxFallbackLink to add a product into the wishlist of a customer. When a guest clicks the Link he is redirected to the login page with a RestartResponseAtInterceptPage. After successful login he returned to the first Page. But the URL contains the IBehaviorListener of my "add to wishlist" Link and every Ajax Link does nothing except to reload the page with no changes. I think the problem is the incorrect match of Page instance and BehaviorListener instance because my Page started with instance 1 and returned with instance 4 from Login Page. Everything works when the guest is already logged in.
How can i remove the illegal URL parameter or call the right Link callback to add the product to wishlist after successful login?
I think you need to do the following, in YourApplication#init() add:
getPageSettings().setCallListenerInterfaceAfterExpiry(true)
You can override it per Page if you don't want to enable it globally, see org.apache.wicket.Component#canCallListenerInterfaceAfterExpiry()

Joomla Submit article redirect to homepage

I have site that user can submit an article in frontend . I have create menu submit article, but when i click it , it redirect to homepage.
Thank you
The guidelines are here: Joomla : How to create an article from the front end.
Go through below:
Your menu item should not have access to only special members if you are submitting content as registered member. In short, you should maintain the access level of the page.
There can be some other cases, for which you must need to post the screenshot if any error message shown on the screen to debug. As you know there are many settings, custom code, and tweaks that Joomla CMS allows to implement.
To change the redirection when submitting an article I found it useful to do the following:
Associate the form that enables you to create an article from the frontend to a menu, and then edit the corresponding element of the menu, on the options tab, select the redirection after submission category to where you want it to redirect and that's it. Hope it helps anyone!

Change Joomla's 'Login to Readmore' url from login page to register page?

I have a blog page on Joomla which shows 'register to read more' link after each articles intro text.
Clicking this brings the user to a login page, with no 'register' option.
How would I change this to bring a user to the register page instead, and preferably revert the user back to the article after login? I have a login box on the register page so it allows the user to choose either login or register.
If you're using Joomla 2.5 and you don't see a link saying something like "Don't have an account?" then you have User Registration turned off.
Go to the Users menu and select User Manager and then click on the Options icon in the toolbar. Under the Component tab set the first option Allow User Registration to Yes.
Save you changes and then click on one of the "Register to read more…" links and you should now see the extra "Don't have an account?"
If you want more than the basic Joomla! options for site access then you may want to look at the Joomla! Extensions Directory (JED) and the section on Site Access

How to change the default redirect page for logged out or unregistered users?

As the title says, I would like to change the default redirect page that Joomla redirects users, when they are logged out or unregistered. I just can't find which file I should edit. I am talking about Joomla 1.5.26 version.
You don't have to edit any files.
If your users are using the mod_login module to Logout you can specify a Logout Redirection Page (i.e. a menu item) in the module itself.
If you're using a "User Menu" with a Logout menu item you can specify in the menu item a Logout Redirection URL — note this a URL not a specific menu item as with the module.

Missing Itemid on url at login pages

I'm on Joomla 2.5.
I created a menu item named "Login Form" with Itemid=626 . Also I created a menu item named "Article" with access level "Registered".
The Problem
When a user click on the "Article" menu item on the frontend, he goes to login page index.php?option=com_users&view=login I need this url to contain Itemid=626 so it could be index.php?option=com_users&view=login&Itemid=626
Please advise
I think you can't override standard joomla login page just creating a menu item.
To create easily some rules and redirect the users you can use this component, Chameleon.
If you don't need complex rules you can just auto redirect all users from standard login to your page.

Resources