@@ -0,0 +1,6 @@
+window.top.addEventListener('popstate', function(event) {
+ if(!!event.state) window.location = event.state;
+});
+$(document).ready(function() {
+ window.top.history.replaceState(window.location.pathname, null, '/mc' + window.location.pathname);
@@ -74,6 +74,9 @@
</main><!-- /.container -->
+ <!-- script to handle history & back/forward for mc/xxx pages -->
+ <script src="{{ asset('js/mc.js') }}" type="application/javascript"></script>
+
</body>
</html>