update getHash

This commit is contained in:
rolux 2013-07-12 11:38:05 +00:00
parent f8596a28e7
commit fc97d25d7b

View file

@ -701,16 +701,7 @@ pandora.getHash = function(state, callback) {
isPrint = state.hash && state.hash.anchor == 'print',
printKeys = [],
removeKeys = [];
if (state.hash && state.hash.anchor) {
if (state.page == 'help') {
if (
state.hash.anchor == 'help'
|| !Ox.getObjectById(pandora.site.help, state.hash.anchor)
) {
delete state.hash.anchor;
}
}
} else if (state.hash) {
if (state.hash && state.hash.anchor && !isEmbed && !isPrint) {
delete state.hash.anchor;
}
if (state.hash && state.hash.query) {