Starting alias path (not working)

Red Diaz asked on September 10, 2015 07:03

Hi All,

I'm currently working on site that requires a specific user to be redirected on a specific page upon login.

I set the "Starting Alias Path" of one user (e.g. /DocLibrary/RBC.aspx) and I left the "Default target URL" blank on the Logon form webpart. When I tried to log-in, it doesn't redirect to the "Starting Alias Path" set the for the specific user.

Is there a specific setting that I need to accomplish for this to work?

Thanks in advance for the assistance.

Recent Answers


Juraj Ondrus answered on September 10, 2015 07:28

Hi,

The Starting alias path setting for user is applied for editors - when they logon to the Pages application, given page is selected in the content tree, based on permissions.

You will need to use a macro condition in the Default target URL setting of the logon form. This macro will be checking the user who is logging in and based on this, it will return desired path.

1 votesVote for this answer Mark as a Correct answer

Red Diaz answered on September 10, 2015 07:34 (last edited on September 10, 2015 07:47)

Thanks Juraj for the prompt reply.

Do you have a sample condition that I can use as a guide?

0 votesVote for this answer Mark as a Correct answer

Maarten van den Hooven answered on September 10, 2015 10:46 (last edited on December 10, 2019 02:30)

@Juraj, but is it possible to know which user is logging in at that moment?

An alternative is placing an macro in URL redirection of the navigation property on your logon page.

You can do this for example based on the role of the user with this macro:

{% CurrentUser.IsInRole("{roles}") ? "/DocLibrary/RBC.aspx" : "" |(identity)GlobalAdministrator%}

Offcourse you can also use other properties like UserID, FullName, etc.

If this answer helped you, please vote for my answer :-)

1 votesVote for this answer Mark as a Correct answer

Maarten van den Hooven answered on September 23, 2015 07:57

Hi Red, did you solved your redirection challenge?

0 votesVote for this answer Mark as a Correct answer

Red Diaz answered on September 27, 2015 01:29

Hi Maarten, I apologize to the late reply. I haven't had a chance to implement your suggestion, the project has been to up to deliberation by the client. That specific project is where I'm going to implement the "login redirect", I'll provide an update once its been implemented.

Thank!

0 votesVote for this answer Mark as a Correct answer

Maarten van den Hooven answered on September 28, 2015 14:51

Hello Red Diaz, Ok thanks for the update and good luck with the implementation.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.