Include hash in url

hi,
I've changed two files:
togetherjs.js and session.js
added  configuration 
TogetherJSConfig_includeHashInUrl = true;
that if true triggers functions that adds listener to hashchange event like this
$(window).on("hashchange",function(){});

then in session file at beginning added 
var includeHashInUrl=TogetherJS.getConfig('includeHashInUrl');

and throughout session.js 
added checks like
if(includeHashInUrl)
tested it out in my app and it works 
but I have to manually trigger hashchange in my angular app 
because if I click on a link that changes hash event does not fire and when I click back button then fires