【问题标题】:Redirect to a different page when signout is clicked rather than redirecting tobuit-in signout.aspx单击注销时重定向到不同的页面,而不是重定向到 buit-in signout.aspx
【发布时间】:2012-09-30 22:35:32
【问题描述】:

当我们单击“欢迎系统帐户”下拉控件(位于页面右上角)上的注销控件时。它使用页面 signout.aspx(C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\signout.aspx) 页面中的一个 buit 来重定向。我希望它重定向到我自己创建的自定义注销页面,我将手动放置在布局文件夹中。怎么做

【问题讨论】:

    标签: sharepoint sharepoint-2007


    【解决方案1】:

    是的,您可以使用 Sharepoint Management Shell 命令更改注销页面的重定向。

    设置自定义退出页面:

    Set-SPCustomLayoutsPage -identity "Signout" -RelativePath "/_layouts/CustomSignout/Signout.aspx" -WebApplication "http://yourwebapplication"
    

    设置默认退出页面:

    Set-SPCustomLayoutsPage -identity "Signout" -reset -WebApplication "http://yourwebapplication"
    

    【讨论】:

    • 这要好得多,因为如果您有 16 个 Web 前端服务器,除非您将 web.config 修改过程自动化,否则模块方法将成为支持的噩梦。这种方法是最佳实践!点赞。
    【解决方案2】:

    创建一个 HttpModule 然后重定向

    【讨论】:

    猜你喜欢
    • 2021-06-15
    • 2023-03-05
    • 2015-07-19
    • 2014-07-23
    • 2014-01-04
    • 2018-05-17
    • 2014-06-07
    • 2014-10-25
    • 2021-08-12
    相关资源
    最近更新 更多