473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Random String added at the end of URL

85 64KB
Dear all,

I have an application developed in asp.net 4.0 in which rewriting of URLs is done using XML file and Global.asax.

It was running fine but for the last few days. I am facing a problem that a random string is added at the end of url like:

The original url is:
http://modelspk.com/sara-loren-model55

But when the page is loaded the url becomes like this:
http://modelspk.com/sara-loren-model55#.Uacf5qJHJU0

I googled a lot but could not find any solution.
any help will be greatly appreciated.

Regards:
Mudassir
May 30 '13 #1
8 6870
Oralloy
988 Expert 512MB
Mudassir,

I don't know why the fragment identifiers (e.g. "#.Uacf5qJHJU0")are being added to your URLs. They didn't block me from loading the page, because (most) browsers use them to jump to specific anchor tags, and when the tag does not exist, they do nothing.

Otherwise, I have no idea why your code isn't working. You will have to post a copy for us to look at.

Cheers,
Oralloy
May 31 '13 #2
Mudassir
85 64KB
Oralloy,
actually i was integrating the social media plugin on the page which was adding the fragment tag at the end of url.. but from SEO's point of view it does not make any difference.. anyhow by changing the script of the social media plugin the problem is resolved..
if someone else want to know in depth about this can visit
http://support.addthis.com/customer/...s#.Uao5f9g0qhp
Thanx for the reply..
Regards:
Mudassir
Jun 1 '13 #3
Oralloy
988 Expert 512MB
Mudassir,

Will you please show us a synopsis of the fix you made, so that other folks who visit bytes with similar problems can understand how to proceed? Basically what file and a before and after of what changed.

Thanks,
Oralloy
Jun 1 '13 #4
Mudassir
85 64KB
Oralloy,
yea sure..
the code i uses previously was
Expand|Select|Wrap|Line Numbers
  1. <div class="addthis_toolbox addthis_default_style " style="margin-top: 10px;">
  2.                                 <a style="width: 300px;" class="addthis_button_facebook_like" <%="fb:like:layout"%>="standard">
  3.                                 </a><a class="addthis_button_tweet"></a>                                 
  4.                                 <a class="addthis_button_pinterest_pinit">
  5.                                 </a><a class="addthis_counter addthis_pill_style"></a>
  6.                             </div>
  7.                             <script type="text/javascript">                                var addthis_config = { "data_track_addressbar": true };</script>
  8.                             <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-51a43a3f07447a61"></script>
  9.  
and now i am using the following code for the social media plugin...actually i changed the whole script..

Expand|Select|Wrap|Line Numbers
  1. <div id="fb-root">
  2.                                         </div>
  3.                                         <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
  4.                                         <fb:like font="verdana" show_faces="false" width="100" layout="button_count" send="false"
  5.                                             href="http://<%=Request.Url.Host.ToString()%><%=Request.RawUrl.ToString()%>">
  6. </fb:like>
  7.                                     </td>
  8.                                     <td width="20%">
  9.                                         <a class="twitter-share-button" href="http://twitter.com/share" data-count="horizontal">
  10.                                             Tweet</a>
  11.                                         <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
  12.                                     </td>
  13.                                     <td width="20%">
  14. <div class="g-plusone" data-size="medium"></div>
  15. <script type="text/javascript">
  16.     (function () {
  17.         var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
  18.         po.src = 'https://apis.google.com/js/plusone.js';
  19.         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  20.     })();
  21.  
  22.  
  23.  
AND FOR linked in, twitter and share button add the following codes respectively
Expand|Select|Wrap|Line Numbers
  1. <script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
  2.                                         <script type="IN/Share" data-counter="right"></script>
  3.  
  4. <div class="addthis_toolbox addthis_default_style ">
  5.                                             <a class="addthis_counter addthis_pill_style"></a>
  6.                                         </div>
  7.                                         <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=modelspk"></script>
  8.  

Regards:
Mudassir
Jun 1 '13 #5
Frinavale
9,735 Expert Mod 8TB
The only time I've ever used a "#" in my HTML is when I want to link to a particular part of a page (as opposed to link to another document).

You can read about it on w3schools here: HTML Links.

So, while it may appear to be a "#" followed by some random characters...the random characters are actually an ID of an element on the page.

-Frinny
Jun 3 '13 #6
Mudassir
85 64KB
Frinavale,
you are right the # tag refers to particular section on the document . like we can link the # tag to the reviews section on the same page. and this # tag was being appended to url because of the script i used for integrating the social media plugin..

Mudassir
Jun 4 '13 #7
Frinavale
9,735 Expert Mod 8TB
As long as it doesn't break anything or hurt your search engine ranks, I'd just ignore it.

-Frinny
Jun 4 '13 #8
Mudassir
85 64KB
Frinavale,
it doesn't effect the search engine optimization.. for reference you can see
http://support.addthis.com/customer/...s#.Ua7Bbtg0qhq

Mudassir
Jun 5 '13 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Andreas Lobinger | last post by:
Aloha, i wanted to ask another problem, but as i started to build an example... How to generate (memory and time)-efficient a string containing random characters? I have never worked with...
2
by: Phipps Xue | last post by:
Hello All, I wanna write an small game which need to generate a random string each time. It should go like this. TCHAR tmpStr; unsigned int nLen=50; TCHAR seedStr=_T("dummy seed"); int...
4
by: Jonathan Burd | last post by:
Greetings everyone, Here is a random string generator I wrote for an application and I'm wondering about the thread-safety of this function. I was told using static and global variables cause...
2
by: Juan | last post by:
Hi How to generate an unique random string of determinate characters length? Thanks
2
by: PJ6 | last post by:
I'm not sure what I did to prompt this change in bahvior, but now I get this random string interjected into all my project's URLs when runnig on localhost. If I remove it, it just comes back....
5
by: deko | last post by:
If I have random and unpredictable user agent strings containing URLs, what is the best way to extract the URL? For example, let's say the string looks like this: registered NYSE 943 <a...
38
by: Andrea | last post by:
Hi, Anyone could me suggest how to create a function that generates a random string? The function should be: int _RandomString(char** str,int len); so, it takes an empty string str and it puts...
3
by: Noss | last post by:
like if i have a list of items and each time i want the program to choose one random item for me. i know how to generate a random number..but not picking a random string of charachters in a specific...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.