I have Wordpress project with advert banners. The banners are just pictures <img src="path"> encapsulated by <a href="target">. Nothing special... Now when we are testing the web, we have found that when there is opened article detail and user click on banner and then press back button (or go back in any other way) the chrome display homepage of our web (not article detail). Actually, sometime display article detail, but not the article where I was before clicking on banner.
I have tried restart browser/computer, open URL in any other computer and the problem is only when I use Google Chrome. Exactly v.42.0.2311.152.
Do anyone have any experience with that?
I have found the problem. There was tracking clicks by Google Analytics:
<a href="target" onclick="return _ga_send()">
in the _ga_send method was redirecting by Javascript
window.location.replace("target");
It replace the current location and if you go back (from AD), browser remember the page before you get on.
The solution is:
window.location.href = "target";
Related
I can't seem to find an answer to this, since most answers assume you can include an {a href> tag.
I have a google form embedded into Wordpress for customers to submit details. It is embedded using and iframe using the share code from the google form itself.
On the confirmation page after the customer has submitted a response, we have a link for a customer to click to process an order, however this opens our own website again, within the iframe.
I want to open this in the parent window. Is it possible?
NB Google Forms appears to not let me mark up the link. If i put <a href="https://example.com>Click HERE{/a> - it just makes the https://example.com a link within the tag.
my website had two static URL placed at header sections that used to switch between home page and contact page. I found out that it is working well when I logged in as admin but these two links not working after I logged out. The problem is that it only dynamically render content area once I click on the link. I need every click I made will jump to another page. But currently, it looks like it didn't make a new request and refresh the page. I don't know what's happening about it. Please help me out I am so struggling about it.
I want to embed iframe section on account tab. I've created simple Visualforce page with
Standart Controller - Account.
<apex:page standardController="Account">
<h1>Congratulations</h1>
This is your new Page
<div>
<apex:iframe src="https://www.facebook.com/" width="800" height="600" />
</div>
</apex:page>
I've added a VisualForce section into account layout. But I'm unable to see my
iframe content in the result details page.
It seems that iframe content is rendered only if my iframe is related to salesforce
domain.
So my question is: Is it possible to embed external domain page into standard details page?
Facebook does not like people framing its content. I believe that is the problem rather than it being salesforce related. To be sure, try swapping the facebook url for this:
"http://www.clubpenguin.com/"
If that works, then you know it's not salesforce blocking you but facebook.
(Club Penguin is just a site I know that happens to allow iframes, so it's a good one to test with!)
When you try and frame facebook you will probably find this error if you look in a browser debugger:
Refused to display document because display forbidden by X-Frame-Options.
There is a discussion of this error here:
Overcoming "Display forbidden by X-Frame-Options"
I am not sure why this is happening. But, When i try to post Link Omitted on the company's facebook page, the thumbnails aren't loaded by the facebook. Whereas if I try to post some earlier link from my website, like Link Omitted, all the pics from that page are loaded.
Can someone tell why this happens...Also, sometimes, facebook doesn't load all the images from page.
You rely on how Facebook scrapping your page content which isn't a best way to achieve what you want. The reason you see image for older links is probably caching.
To ensure you have images with posting your content on Facebook you should add og:image OpenGraph meta tags.
For more info on this read OpenGraph documentation and use Facebook Debug tool to check if you have any issues with scrapping and/or all details scrapped correctly.
When I click the option to show the iframe code for he Facebook 'Like box' plugin
it bounces me back to the configuration page.
How can I get the iframe code?
When I go to that like-box I'm always able to click and see the iframe codes to use. Maybe your browser is to blame. Try a different browser or change your current browser's settings.