Hi
I've searched in the community a module which allows user to redirect to previous page after log in or register but it seems fail. I'm wondering if I can contribute to the community this module.
The module will allow user to redirect to previous page after login/register, or redirect to a URL that is configured in the admin settings page.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | destination_login.zip | 1.59 KB | oliver huynh |
| #6 | destination_login.zip | 1.53 KB | oliver huynh |
| #2 | destination_login.zip | 1.59 KB | oliver huynh |
Comments
Comment #1
AjK commentedUsing Google I found many modules and ways to redirect after login. Do we need another?
Comment #2
oliver huynh commentedI don't think so, there is ways, but not any module provides this.
My module lets user redirect to any specific page or previous page after log in. Please take a test. It is simple but it works.
Comment #3
avpadernoThat part should be removed, as it is added from the packaging script.
See what reported on Apply for contributions CVS access:
Comment #4
oliver huynh commentedHi KiamLaLuno
1. Okay
2. I follow the code standard as much as I can. Please verify this again.
3. I've read "Apply for contributions CVS access" carefully. I can't find any module provide this functionality. If you can, please provide one.
Comment #5
avpadernoYou didn't upload the new code.
Comment #6
oliver huynh commentedHi
Sorry, this is the code. Please check.
Thanks,
Oliver
Comment #7
oliver huynh commentedHi KiamLaLuno
Please review my recent upload
Comment #8
avpadernoThe code is not formatted as suggested by the coding standards (this is a very minor issue).
I will leave to somebody else the decision about this CVS application.
Comment #9
oliver huynh commentedHi KiamLaLuno
1. Fixed.
2. Let me give you a demo of this:
URL: http://jufist.com/demo/destination_login
- Open http://jufist.com/demo/destination_login/node/2
- Click User Login
- Login as user demo/demo
- You will be redirected back http://jufist.com/demo/destination_login/node/2
Comment #10
oliver huynh commentedPlease review. Thanks.
Comment #11
avpadernoThen, what is the difference with what your module does?
As I said, I will leave the decision about this module to somebody else; differently I will be once again said to be despotic (you can always thank the user who said such thing, if your application will wait for somebody else approval).
Also, I apologize if inadvertently my words, or my tone could result offensive for you. It's not my intention to offend, and my task is only to verify if a module / theme is worth to be placed in Drupal.org CVS, and if to approve CVS applications made from people. I don't judge the person who is applying for a CVS account in any way.
Comment #12
avpadernoComment #13
oliver huynh commentedHi KiamLaluno
As your steps:
1. Go to http://drupal.org, and log out, if you are logged in.
2. Visit http://drupal.org/node/598774 (without to first close the browse).
3. You will see a block that you can use to log in in Drupal; enter your user name and password; click on the button to log in.
4. You will notice that you are still in the page you were watching before to log in (http://drupal.org/node/598774).
You've logged in through the block, and the URL was still http://drupal.org/node/598774
It is different with my module's function. User goes to http://jufist.com/demo/destination_login/node/2, then he logs in by go to other URL: http://jufist.com/demo/destination_login/user and after logging in successful he is redirected back to http://jufist.com/demo/destination_login/node/2
If you are still here, please take a deep look.
Comment #14
avpadernoI understood what your module does; still, the difference is between having a block (which is then handled by Drupal core code), or not having it displayed.
To notice that I have not spoken of the second option, Drupal actions.
As I have already made my point, I will stop in explaining it any further before to get boring.
To notice that two of all the persons who approve CVS applications have already raised doubts about the proposed module; that doesn't mean anything, and somebody else who approves applications can have a different opinion (and maybe s/he can approve this application).
Comment #15
oliver huynh commentedOkay. Anyway, thanks for your taking time to review. You can close this topic.
Comment #16
avpadernoBasing on the last comment, I am marking this report as .