Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Linking to the logout page from within the CMS?


Reply


3 Posts   837 Views

Avatar
flipsidenz

Community Member, 49 Posts

29 June 2011 at 9:14am

Just wondering how I can include a link to the /Security/logout page using a HTML editor inside one of my pages?

If I add a link, my options are:

- Select a page from the site tree (logout isn't in the tree)
- Link to an external website (forces http:// onto the front of the URL)

Therefore, I cannot easily link to the logout page.

Are there any ways of doing this from within the CMS?

Avatar
swaiba

Forum Moderator, 1799 Posts

29 June 2011 at 11:49pm

could you setup a redirector page (that redirects for Security/logout) and then link to that?

Avatar
flipsidenz

Community Member, 49 Posts

7 July 2011 at 8:00am

Thanks for the reply!

I thought I was going to be stuck with the same problem when using a redirector page, but then I realised just to use an absolute URL as a link to the logout page...http://mysite.com/Security/logout/

Simple, really :S

Thanks again