Ez 3.8.0 - Advanced (user-group) redirection not working?

Author Message

Paul Wilson

Thursday 08 June 2006 8:17:56 pm

Has anyone got the ez3.8.0 advanced redirection working properly? It doesnt seem to work for me.

The instructions seem simple enough, but nothing happens. (ref: http://ez.no/doc/ez_publish/technical_manual/3_8/features/advanced_redirection_after_login).

I'm using the "Example 2" (user-group) method on this page. I've tried it on an upgraded site and a completely new install of Ez3.8.0.

After login, the user is always redirected to the last page they visited before starting to login - not the start_page set for their user group. Anyone got any clues on what to check, or what else might need to be done?

Thanks

- Paul

Kristof Coomans

Thursday 08 June 2006 11:16:13 pm

Hi Paul

I think the advanced redirection only works when logging in is required on your site.

In site.ini.append:

[SiteAccessSettings]
RequireUserLogin=true

Please confirm.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Ɓukasz Serwatka

Thursday 08 June 2006 11:50:16 pm

In doc example is typo:

replace
LoginRedirectionURIAttribute

with
LoginRedirectionUriAttribute

And example is worng.

LoginRedirectionUriAttribute as key takes 2 values ony "user" and "group"

Try with:

LoginRedirectionUriAttribute[group]=your_class_attribute_with_uri

or for user try

LoginRedirectionUriAttribute[user]=your_class_attribute_with_uri

This will be fixed today.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Paul Wilson

Friday 09 June 2006 4:27:35 am

Thanks for your replies Kristof and Lukasz,

I made the changes suggested by Lukasz and everything works wonderfully.

Daniele Nocentini

Tuesday 26 September 2006 2:40:59 am

I read the documentation at:
http://ez.no/doc/ez_publish/technical_manual/3_8/features/advanced_redirection_after_login

but in my 3.8.4 installation does not work.
I have this setting:

[UserSettings]
DefaultUserPlacement=2867
UserClassID=40
LoginRedirectionUriAttribute[group]=login_redirection_uri
LogoutRedirect=/webstore

Antica Bottega Digitale srl
http://www.abd.it

Claudia Kosny

Tuesday 26 September 2006 11:53:24 am

Hi Daniele

it is working alright in my EZ 3.8.4. I don't especially like it that the redirect is disabled under certain circumstances ( I am referring to the last paragraph in the docu you linked to) but after playing around with it a bit I realise that this makes sense sometimes so I am undecided on this feature. Nevertheless - it worked fine.

Maybe you just need to clear the cache after updating your userclass with the redirection uri - not sure. If you can't solve it, fetch your user group, inspect it with attribute('show', 2) and post the result here. Also please tell us what is happening on log in - does it redirect to the previously visited page (in this case: What happens if you did not visit any page before?)

Greetings from Luxembourg

Claudia

Daniele Nocentini

Friday 02 March 2007 3:00:38 am

In this documentation page:
http://ez.no/doc/ez_publish/technical_manual/3_8/features/advanced_redirection_after_login

I have read this:

"If the redirection URI has already been specified (e.g. via 'LastAccessesURI' session variable),
the advanced redirection feature gets disabled.
That means that if a user starts browser and goes to our.site.com/news,
he/she will _not_ be redirected to his/her "home page"."

How can I set Login Redirection Uri Attribute always on? and escape this behavior?

Antica Bottega Digitale srl
http://www.abd.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.