<commit_before>class GelatoView extends Backbone.View {

  constructor(options) {
    super(options);
    this.components = {};
  }

  _handleClickNavigate(event) {
    event.preventDefault();
    let $target = Backbone.$(event.currentTarget);
    let href = $target.attr('href');
    let navigate = $target.attr('navigate');
    if (navigate === 'navigate') {
      window.app.router.navigate(href, {trigger: true});
    } else {
      window.app.router.navigate(navigate, {trigger: true});
    }
  }<commit_msg>Cleanup click navigate flow and allow for dead links<commit_after>class GelatoView extends Backbone.View {

  constructor(options) {
    super(options);
    this.components = {};
  }

  _handleClickNavigate(event) {
    event.preventDefault();
    let $target = Backbone.$(event.currentTarget);
    let href = $target.attr('href');
    let navigate = $target.attr('navigate');

    if (href === '#') {
      return;
    }

    if (navigate === 'navigate') {
      window.app.router.navigate(navigate, {trigger: true});
    } else {
      document.location.href = href;
    }
  }
{'fraction_non_alphanumeric': 0.15123739688359303, 'fraction_numerical': 0.0, 'mean_word_length': 3.2490272373540856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2599291', 'n_tokens_mistral': 340, 'n_tokens_neox': 334, 'n_words': 66}