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.
157
questions
0
votes
0
answers
25
views
How do you define hashbang (#!) fragment routing with react-router-dom v6.9?
I'm migrating from react-router-dom v5 to v6.9. In the older library you could define hashbang (#!) routes by simply putting it in the basename. Now it looks like we're to use HashRouter, or another ...
-2
votes
1
answer
101
views
iOS universal link with url path containing "#!"
My iOS app has to support a universal link to a page something like
https://example.com/#!/game/home
And I am having difficulties in getting this to work. I have created an AASA file like
{
"...
-2
votes
2
answers
71
views
Does the hashbang (#!) have any functionality client side?
I recently learned about the hashbang syntax for writing comments in JavaScript, and need to know if it is or has the potential to be any different then just putting a // at the top of a file. Are ...
1
vote
1
answer
165
views
Google Search: get rid of Hash-Bang indexed pages
How can I get rid of Hash-Bang indexed pages on Google Search?
In about 2010 I have made a website that used Ajax-loaded content and the use of Hash-Bang in the URLs.
eg: http://example.com/#!98_153
...
-1
votes
1
answer
363
views
Usage of shebang in file header: is there any option to pass multiple arguments in shebang
I am using a different namespace for my python file execution. using a shebang/hashbang, to execute this script (/bin/bash -c ).
problem faced is shebang only accepts a single argument. even if i pass ...
0
votes
2
answers
396
views
how to run code in different python versions
I have two python scripts and one of them runs on python 3.8.6 64bit and the other runs on python 3.8.6 32bit version. I have been trying to run them using different python version using shebang but ...
1
vote
0
answers
758
views
How can I share a url containing a hash # in linkedin?
I need to share with linkedin a url containing a hash # like this https://example.com/#/item/49
I have already tried using # and %23 instead of hash.
<a href="https://www.linkedin.com/...
1
vote
0
answers
984
views
nginx fbclid remove from url
I have following nginx rewrite. But from simple html link work it very well and from facebook not. First time go to correct url and shortly after few seconds to home url.
if ($query_string ~ "^(.*)...
3
votes
1
answer
289
views
AngularJS - 404 error on page reload after Hashbang removal [duplicate]
After removing the hashbang from my routes using
$locationProvider.html5Mode(true);
Now when visiting a page, for example "domain.com/download", it will work. But if I reloaded this exact ...
0
votes
1
answer
494
views
How to return to bookmarked hash-bang URLs within a single page application?
I understand the HTML5 History API and how it enables to back and forward buttons within a single page application (SPA).
But given the URL displayed by the API, how can I return to application state ...
0
votes
0
answers
41
views
Difference between pushstate and hasbangs?
I wanted to ask you guys, what is the better use for anchor links? Rather using hashbangs or using pushstate? I have read that hashbangs are out of time and pushstate would be better for SEO, but ...
2
votes
2
answers
643
views
AngularJS SPA routing getting URL as "/#!" instead of "#" [duplicate]
In my SPA AngularJS application, I am getting the URL as http://localhost:4200/#!/ instead of just # (hash bang). Because of this the routing does not seem to work in the usual way.
I did go through ...
0
votes
2
answers
806
views
Removing #! from angular.js Urls in ASP.Net Web API
So I am trying to remove the #! in my angular site and transition to html5. I've looked at other guides and I've implemented them with the locationProvider and base within the index file. The site ...
1
vote
1
answer
55
views
AngularJs ngRoutes not working
I add this link tag <a href="#/pendingJobs"> And in Js wrote this type of when function
.when("/pendingJobs", {
templateUrl : 'jobsPending.php',
controller : 'appCtrl'
})
But when i ...
0
votes
0
answers
41
views
In html5mode urls in angular, if i manually type hashbang(#!) in the url, then it goes in an infinite loop
when i type #! manually in my html5mode url, it goes to an infinite digest cycle loop. I want it to redirect to html5mode url, but instead it goes in a redirect loop and the url becomes something like ...
0
votes
1
answer
437
views
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 ...
0
votes
2
answers
1k
views
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: #!...
1
vote
1
answer
2k
views
hashbang #! url patterns for REST on the client side
I've a single page application with my own custom router.
window.onhashchange = function(event) {...
and I've hash bangs like following.
#!/products
#!/products/1
#!/brands
#!/brands/1
But they ...
18
votes
2
answers
8k
views
Cannot access page on Refresh due to Hasbangs in a React SPA
I'm using a ReactJS SPA created from https://github.com/facebookincubator/create-react-app
I'm using S3 and Cloudfront to serve my website. Everything works fine until I reload the page - it throws ...
1
vote
1
answer
189
views
Hashbang defaulting in angular application
Do the newest versions of angular/angular-route 1.6.1 use hashbang by default? Take this piece of code for example, I have to use #! when linking to partials because #/ or #/partial2 does not work. I ...
2
votes
1
answer
2k
views
How to find correct Hashbang or Shebang for PHP script
I have set up a forwarder in my cPanel so that any emails that go to contact@mydomain.com will be picked up and processed by a PHP script.
#!/usr/bin/php -q
<?php
$fd = fopen("php://stdin", "r");
...
0
votes
0
answers
397
views
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 ...
54
votes
4
answers
34k
views
URL hash-bang (#!/) prefix instead of simple hash (#/) in Angular 1.6
My URLs on an AngularJS project have changed from localhost:3000/admin#/ to localhost:3000/admin#!/ since the last time I worked on my project...
Nothing found on the web, does someone know what this ...
0
votes
2
answers
74
views
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']);
...
3
votes
1
answer
1k
views
Optional hash prefix for angular routing
I am currently trying to make an angular app indexable by implementing the _escaped_fragment_-scheme (Google Docs). I am aware of the fact that it is deprecated but as far as I can tell after some ...
2
votes
2
answers
296
views
Detect or capture hashbang/querystring change into same href target
I've noticed a couple sites that if I create multiple links that share the same target, the site doesn't actually reload the request, rather it captures the link and handles it, either by loading it ...
0
votes
2
answers
2k
views
Html anchor linking and hashbang, simple solution?
I have in http://www.g3eo.com/#!/page_About the following in line 96:
<li><a href="#!/page_Services">Side scan sonar surveys</a></li>
and need to create an anchor to go to ...
3
votes
1
answer
1k
views
Angular2 rc.5 and hashbang
In previous rc.4 release setting up hashbang #! looked like this
bootstrap(ApplicationComponent, [....
{provide: LocationStrategy, useClass: HashLocationStrategy},
{provide: APP_BASE_HREF, ...
1
vote
1
answer
321
views
htaccess redirect error when user is googlebot
I have a web site created with angularjs. i want to redirect to a PHP page when user is a GoogleBot and for this i add some rules to htaccess file.
but when i test from google bot this role does not ...
0
votes
2
answers
752
views
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/#/...
0
votes
1
answer
455
views
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 ...
2
votes
0
answers
787
views
Redirecting Hashbang (#!) URLs
I currently have a WIX website. I'm now moving to Wordpress. Before I go live with my new site, I need to redirect all the urls which includes hashbangs (#!) from the old site to the new pretty urls.
...
27
votes
3
answers
23k
views
PathLocationStrategy vs HashLocationStrategy in web apps
What are the pros and cons of using:
PathLocationStrategy - the default "HTML 5 pushState" style.
HashLocationStrategy - the "hash URL" style.
for instance, using HashLocationStrategy will prevent ...
1
vote
2
answers
601
views
How to reload page if html5mode is enabled in angularjs?
I had made a SPA in angularjs, when I run it on browser it showed me '#' in the address bar. So I enabled html5Mode. This successfully removed '#' from the url but when I try to reload the page, it ...
11
votes
1
answer
388
views
Twitter text js , not calculating the length from text which contains urls with #!
I am using Twitter text js to calculate length of text with urls containing #!.
eg:
"Some text http://domain.com#!/path/p/56319216 #tag1 #tag2".
In firefox debugger error generates on this line in ...
-1
votes
1
answer
98
views
angular.js url routing and html5Mode(true)
I want to setup accessible and bookmarkable URLs that are routed by angular.js.
The application is only a part of the whole website accessible via http://example.com/application/
Whatever comes ...
-1
votes
2
answers
90
views
How www.hashbang.com opens localhost
When i type hashbang.com it open localhost/xampp is it installed as virtual domain in computer or it's real domain ?
2
votes
1
answer
1k
views
Why does setting the URL hash through AngularJS's $location.hash add an extra "#/" before the hash?
After adding the statement $location.hash('tab1');, I expected the URL to change to '/#tab1' but it becomes '/#/#tab1'.
What is causing the extra '#/' to appear and how can I avoid it?
UPDATE:
To ...
3
votes
2
answers
359
views
why do `#!/usr/bin/env var=val command` gets into an infinite loop
In man(1) env it say:
env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
So consider print_A.sh:
#!/usr/bin/env A=b bash
echo A is $A
When I run it with ./print_A.sh it hangs.
Running it with ...
2
votes
2
answers
386
views
Make CasperJS fully reload fragment (hashbang) links
When I use the example here I find that a range of hashbang links on the same page (that dynamically creates different content) only generates the content the first time. For all the other results, ...
4
votes
0
answers
104
views
MSEDGE replaceState | test if method is supported
BROWSER: Edge 12.10158
Snippet:
window.history.replaceState({page: fragment},'','/demo/'+fragment);
This works in all other browsers as expected (including IE 11); However, when using this in Edge i ...
1
vote
1
answer
719
views
Redirect from Hash to HashBang using angular
I have published a website using mvc c# with angular and AJAX calls to create some client side pages. One of my links look like this:
www.website.com/App#/Index
I am trying to setup a hasbang ...
0
votes
0
answers
24
views
Angularjs site with hashbang to share on Facebook [duplicate]
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 ...
0
votes
0
answers
56
views
what is the difference between hashbang and HTML5 pushState? [duplicate]
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?
1
vote
1
answer
358
views
AJAX Crawling with question mark instead of hashbang
Where I'm at: I've read Google's documentation regarding it's AJAX crawling, and I've searched around a bit in this website and others, but I'm quite confused, as it seems that all problems address ...
0
votes
1
answer
414
views
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 ...
1
vote
0
answers
148
views
Google does not index startpage (index.html) of AJAX application correctly but all subpages containing a hashbang (#!)
I followed the google guideline Making AJAX applications crawlable to make my AngularJS Application crawlable for SEO purposes. So I am using #! (hashbang) in my routes config:
$locationProvider....
1
vote
0
answers
465
views
Linked in share and hashbang url
I have a question about linkedin and sharing url with hashbang (angular app).
It seems like if the hashbang is right after first slash (www.example.com/#!/someString) the LinkedIn bot will issue ...
1
vote
0
answers
316
views
How do I avoid Facebook adding _escaped_fragment_ to urls in Facebook comments notifications?
I have an Angular site that uses hashbang (#!) in urls. To render these pages for crawlers and Facebook bot (who changes the #! to ?_escaped_fragment) I have server side logic to add meta-tags, open ...
1
vote
2
answers
157
views
Dynamic web application without hashbang #!
How is it possible that web applications like Google Maps and Mixcloud update their urls without the use of a hashbang (also known as #!)?
Notice for example the coordinates right after the @ sign in ...