Questions tagged [hashbang]

The hash-bang "#!" is used in AJAX-based web applications to indicate that it has web crawler support. For the shell script shebang ("#!" at the start of a file), use the [shebang] tag instead.

"Hash-bang" is a nickname for the sequence "#!" (octothorpe, exclamation mark). It is used

  • in URLs to indicate that this is a AJAX-based web application with web crawler support

  • in Unix shell scripts to identify the executable that should be used to parse this file, e.g.

    #!/bin/bash
    #!/usr/bin/perl -w
    

    to run a script with the bash shell or with Perl (in warnings mode) respectively. Use the tag for these questions instead.

157 questions
0
votes
1 answer

Redirect URLs without hashbang to URLs with hashbang using AngularJS

Since upgrading to AngularJS 1.6, hashbangs are defaulted. How would I redirect formerly distributed URLs to transform to a version with the hashbang? For example www.myu.rl/#/hello/ would then become www.myu.rl/#!/hello Currently it navigates to…
Tom
  • 869
  • 6
  • 25
0
votes
2 answers

jQuery unrecognized expression with hashbang

I have some fragments that load on click. I also scroll the page to the top on these links, as found on css-tricks. I get the following error: Uncaught Error: Syntax error, unrecognized expression: #!Fragment_Name My js $(function() { …
Dirty Bird Design
  • 5,333
  • 13
  • 64
  • 121
0
votes
0 answers

Hashbang URLs (#!) problems in wordpress

Good Morning Everybody, I have my site in wordpress, now the issue is that google index one of my Hashbang url like below… http://example.com/#!info/citr I don't know whether it is present in my site or not....and unable to find such kind of any…
0
votes
2 answers

want to remove # from my angularjs application

want to remove # from my angularjs application i have tried $locationProvider, but there is no luck here is my Config : var TechdefeatApp = angular.module('TechdefeatApp',['ui.router']); TechdefeatApp.config(['$stateProvider', '$urlRouterProvider',…
0
votes
2 answers

Html anchor linking and hashbang, simple solution?

I have in http://www.g3eo.com/#!/page_About the following in line 96:
  • Side scan sonar surveys
  • and need to create an anchor to go to line 180:
  • Side scan sonar surveys
  • I…
    Gery
    • 8,390
    • 3
    • 22
    • 39
    0
    votes
    2 answers

    hashbang urls not working

    I use angular ui route, works fine - but in browsers that doesn't support html5mode, and it has to fall back to hashbang, links aren't working. www.test.com/something < works www.test.com/#/something < not working. (redirects to test.com) not quite…
    Anders Pedersen
    • 2,255
    • 4
    • 25
    • 49
    0
    votes
    1 answer

    AngularJS - Redirect old url to new url after changing hashbang mode to html5 mode

    I want to change the routing mode of my app from hashbang (#/path) to html5 mode (/path). How can I redirect the old URLs to the new ones? The situation is we already sent out some emails with the old URLs. People are still able to access them.
    Thịnh Phạm
    • 2,528
    • 5
    • 26
    • 39
    0
    votes
    0 answers

    Angularjs site with hashbang to share on Facebook

    I have an angularjs website with hashbang in the url(which cannot be removed at this stage of the product). The blog pages have links to share the post to social websites. If I try to share the post on Facebook, Facebook gives an error saying that…
    prdtuty
    • 532
    • 3
    • 9
    • 21
    0
    votes
    0 answers

    what is the difference between hashbang and HTML5 pushState?

    on the angularJs official web site in ngRoute section they have mentioned two types of url supports hashbang and HTML5 pushstate. i want to know the difference between both hashbang and pushstate?
    0
    votes
    1 answer

    Emberjs Hashbang is getting Uncaught ReferenceError: set is not defined

    I implemented the ember.js hashbang via ember-cli. So in my app/initializer folder I have an application.js that contains the solution from this previous question: Hashbang URLs using Ember.js When I run the code it works great but when I go to…
    artsmc
    • 134
    • 1
    • 8
    0
    votes
    1 answer

    AJAX-crawling (hashbang conversion)

    I'm working on AJAX-crawlable (Google AJAX-crawling) website, but some things are unclear to me. On the back-end of the application I filter out the _escaped_fragment_ parameter and return a HTML snapshot as expected. When calling the URL's manually…
    mkoster
    • 69
    • 7
    0
    votes
    0 answers

    Checking if there's a hashbang in URL and if there's a value after it

    I have a single page PHP app and use my urls as follows with a hashbang: http://www.example.com/ http://www.example.com/#!/ (if coming to the homepage from another url below) http://www.example.com/#!/aboutus http://www.example.com/#!/contact Now…
    DT.DTDG
    • 765
    • 1
    • 13
    • 31
    0
    votes
    1 answer

    Meteor - How to exclude certain paths from being crawled?

    In Meteor, I have installed the spiderable package, which allows the application to be crawled by search engines. However, I want to exclude certain paths from being crawled. For example, example.com/abc/[path] should not be crawled, whereas…
    dayuloli
    • 16,205
    • 16
    • 71
    • 126
    0
    votes
    0 answers

    AJAX - Google Crawling and 'Fetch as Google'

    I have a question regarding Google crawling and AJAX. This is how my url looks like: example.com/#!contact I know that Google and other search engines use ?_escaped_fragment_= to replace the hash tag in order to get a certain page. When I…
    Bralemili
    • 132
    • 1
    • 1
    • 11
    0
    votes
    1 answer

    Making a website widget SEO compliant - is it possible?

    I've recently been briefed to add a widget to a client's site which will allow a user to interact with different parts of an image, and drill down to more detailed information about what they are clicking on. This is all fine, and is something I've…
    stevehayter
    • 796
    • 1
    • 7
    • 23