…thus, back button is not working either.
I am using this. It was working fine. Is this no longer working?
// Custom utilities function replace(str, find, replace) { return str.split(find).join(replace); } function toTitleCase(str) { return str.substr(0,1).toUpperCase() + str.substr(1); } function formatTitle(title) { return 'MySite' + (title != '' ? ' / ' + toTitleCase(replace(title.substr(1, title.length - 2), '/', ' / ')) : ''); }
Thanks, Rich
Log in to post a comment.
…thus, back button is not working either.
I am using this. It was working fine. Is this no longer working?
// Custom utilities
function replace(str, find, replace) {
return str.split(find).join(replace);
}
function toTitleCase(str) {
return str.substr(0,1).toUpperCase() + str.substr(1);
}
function formatTitle(title) {
return 'MySite' + (title != '' ? ' / ' + toTitleCase(replace(title.substr(1, title.length - 2), '/', ' / ')) : '');
}
Thanks,
Rich