Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forward_url after login (Trac #4275) #4275

Closed
elgg-gitbot opened this issue Feb 16, 2013 · 12 comments
Closed

forward_url after login (Trac #4275) #4275

elgg-gitbot opened this issue Feb 16, 2013 · 12 comments

Comments

@elgg-gitbot
Copy link

Original ticket http://trac.elgg.org/ticket/4275 on 42019997-08-18 by trac user ismayil.khayredinov, assigned to trac user Harsha K.

Elgg version: 1.8.2

Can we add a config setting or a hook to override default forward_url for the login action?

@elgg-gitbot
Copy link
Author

brettp wrote on 42026290-01-11

The only reason not to is the pending events / hooks rewrite for 1.9.

I do see the use for this, though I definitely prefer a hook to a config setting.

@elgg-gitbot
Copy link
Author

cash wrote on 42050747-01-30

We need to develop guidance on when to use config settings and when to use hooks. Hooks offer more flexibility but have a higher overhead (more code to load and compile).

@elgg-gitbot
Copy link
Author

Title changed from forwar_url after login to forward_url after login by cash on 42050747-01-30

@elgg-gitbot
Copy link
Author

trac user ismayil.khayredinov wrote on 42053357-04-25

After reading some of the questions related to this in the community, I must agree with Brett on using a hook. People want to do all kinds of things: forward on first login only, forward when xyz criteria is met etc.

@elgg-gitbot
Copy link
Author

cash wrote on 42053466-03-25

Do we implement this for 1.8.x or for 1.9?

@elgg-gitbot
Copy link
Author

brettp wrote on 42053798-10-20

1.9 is the target for the hooks rewrite. We made an exception for one hook because without it we couldn't properly support RSS. This hook would be a new feature, so I think it can wait. Please comment if anyone thinks we need more discussion.

@elgg-gitbot
Copy link
Author

Milestone changed to Elgg 1.9.0 by brettp on 42053798-10-20

@elgg-gitbot
Copy link
Author

trac user ismayil.khayredinov wrote on 42072115-12-21

After looking at the code again, it looks like we don't really need a hook. We could just add another hidden input to the login form and use it in action as a forward url.

@elgg-gitbot
Copy link
Author

cash wrote on 42072171-08-25

Plugin hooks tend to be about changing how Elgg acts while views are about how Elgg looks. Because of that, I prefer the plugin hook over the view approach. What's the advantage of using the view?

@elgg-gitbot
Copy link
Author

trac user ismayil.khayredinov wrote on 42075259-11-15

Ah, sorry I wasn't clear. I was thinking about a solution that could be introduced in 1.8 still.

@elgg-gitbot
Copy link
Author

trac user Cash Costello wrote on 42467208-05-27

Fixes #4275 adds a login:forward, user hook - thanks to Ismayil
Changeset: daa9ce7

@elgg-gitbot
Copy link
Author

trac user hellekin wrote on 42932311-08-14

Could that fix be integrated in 1.8.10?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant