I have created a macro that redirects the user to a change password page according to whether or not a property on their member node is set to true. I then inserted this macro into the top most template so it is executed on every page.
The problem is, The user still needs to be able to use the logout page, so I need to tell it not to run if it is on the "/members/logout" page.
I have tried the following but all have failed:
Using the "HttpContext.Current.Request.Url.AbsolutePath" variable to check for the "/members/login" page
Adding the macro into a content placeholder's default content on the top most master page and clearing this default content by manually inserting content into the placeholder on the logout page
Running macro according to requested page's path
Hi all,
I have created a macro that redirects the user to a change password page according to whether or not a property on their member node is set to true. I then inserted this macro into the top most template so it is executed on every page.
The problem is, The user still needs to be able to use the logout page, so I need to tell it not to run if it is on the "/members/logout" page.
I have tried the following but all have failed:
What is the best way to achieve this?
Thanks
Max.
bump
bumpity bump
is working on a reply...