Mobile index not redirecting to index for appropriate device (desktop or tablet)

When a user shares my website from their phone browser and another user clicks the link from a tablet or desktop, it still shows the phone version.  For instance:
My son shares the website using the share feature on his android phone.  No matter WHERE he is sharing through (messages, email, facebook, twitter, etc), the link shared is http://truehdfitness.com/phone/index.html.  Muse places all redirect scripts on the desktop version of the site, but I need to be able to redirect people who click that link from a tablet or a tablet.  I've already had to export the website to dreamweaver to tackle a few code issues, I just need to know what to add to my tablet and phone pages to get them to redirect according to device when shared links are clicked.
As you can see, I've shared the page from both desktop and mobile to my facebook page.  I had hope that by changing the og url it would link to my desktop page, but that isn't the case.  It still links to the phone index, which means the only people that see the site like they should are those who click that link from a mobile phone.  This won't do!  Too many people share pages these days and statistics show that many people start viewing a page from one device and go back to it through a different device.  Mobile and tablet links HAVE to redirect to appropriate sites.
If you'd like to see what I'm talking about, click the topmost post on my facebook timeline while you're on a desktop or tablet.  It's UGLY!  https://www.facebook.com/dedi.thorne
So, is there code that I can add to my phone and tablet sites that will resolve this?
Thanks!
Dedi

<script language="javascript">
var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.to LowerCase()));
if (!mobile) {
var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);
              window.location.replace("http://ThorneHills.com/index.html");
</script>
This is what I tried on http://www.thornehills.com/phone/index.html
Did I misunderstand how I was supposed to put the pagename in?  I wasn't sure what you were saying, so I looked at the javascript site and that's what I came up with.add that
Edited to add that I had honestly tried it several times and finally gave up and came back to you for clarification.  The code I posted is just my most recent attempt.

Similar Messages

  • HT201412 I no longer have the computer my ipod touch was sinked too, my ipod has now crashed, when conected to my latest pc it states this computer is not the supervisor pc for this device, can anyone help

    I no longer have the computer my ipod touch was sinked too, my ipod has now crashed, when conected to my latest pc it states this computer is not the supervisor pc for this device, can anyone help

    iOS: Unable to update or restore
    Read the article  Put it in recovery mode

  • Firefox doesnt supports my mobile but they mentioned as supported for my device

    as you have mentioned firefox supports dell streak 5 ...
    but it isnt supporting my device..
    im using 2.2.2 stable version..
    hope u fix the issue..

    Development could not finish in time for our initial release, and we did not want to delay by a couple months.
    You can test out what is currently in development and available for tablets as a preview with Nightly, our developer channel builds at http://nightly.mozilla.org

  • Printing error with t-code j1inmis: Can not find PDL type for output device

    Hi,
    When using tr.code j1inmis,when we seeing the print preview iam getting below error.
    The error with my system show the details as follow :
    Cannot find PDL type for output device LP01.
    My system is only abap stack.Guide me for the same how to resolve this.
    Thanku

    Hi,
       When i submit the test through URL its working fine(http://192.17.0.12/AdobeDocumentServices/Config).In SM59 Both sides are working.
    When I check The Test : FP_TEST_00 iam getting below error
    ADS: com.adobe.ProcessingException: com.adobe.Processin(200101)
    But
    When I check The Test : FP_PDF_TEST_00 its working fine.
    And When I check this test : FP_CHECK_DESTINATION_SERVICE without destination its working fine.
    When i check with destination iam getting error :  SYSTEM ERROR:com.adobe.ProcessingException:Problem accessing data from Destination:dest:FP_ICF_DATA_SMN//sap/bc/fp/form/layout/FP_FORM_SECURITY_TEST.XDP?fp-language=DE.
    Guide me for the same two tests are working fine other two are getting error,guide me for the same to solve this,appreciate ur help.
    Thanku

  • Looking for a "device desktop" type app.

    Something that shows my today's appts, my tasks, all on same page. I tend to forget my tasks unless they are front and centre for me every day.
    Also looking for a good world clocks application.
    Recommendations appreciated!
    S.

    For the BlackBerry?
    Try getting a new theme for the device, look for one that is called a "Today" theme, which includes calendar and task items.
    You don't say what model you have, but look at various theme sites, like phttp://www.pimpmyberry.com/
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Grails - default index - not defaulting to index.gsp

    Does anyone know how to make the default index also include index.gsp? I'm afraid this may require a config outside of the EM but I want to make sure before I bug a SA.
    For example:
    "mydevserver:7777/mygrailsapp/" should display the contents of index.gsp but instead you must navigate to "mydevserver:7777/mygrailsapp/index.gsp" directly.
    "mydevserver:7777/mygrailsapp/somecontroller/" works fine but the root is where the problem occurs.
    ******************Extra notes for other people deploying grails on Oracle AS****************
    1. If you are not using shared libraries you should select "search local classes first" in your deployment plan.
    2. Make sure you have patched AS to the most recent version. You will get 500 errors for WEB-INF served files (css, js, images, etc.) on older AS versions.
    Edited by: user6301541 on Jun 27, 2009 7:50 AM

    Hello,
    do you have really images with a case ending  *.html instead of *.jpg?  Please have a look here in your style.css:
    background: url(images/img02.html) and I found it here e.g. in your Admin-2.html e.g. (img01.jpg I could not find)
    <td><img src="gwynn.jpg" width="170" height="180" alt="Brian Gwyn" /></td><td><img src="rosen.html" width="150" height="180" alt="Eric Rosen" /></td>
    (Brian Gwyn is wrong too, or not?)
    There I found so too this:
    <td><img src="#" width="210" height="180" alt="" /></td> # should be "TBA"
    And my answer would have been too: You better don't use upper case.
    Hans-Günter

  • Save for web & devices not working (CS4)

    I noticed today that I can't save for web & devices any more. when I try it shuts down the program and gives me the following message to send a crash report:
    Adobe has detected that the application Adobe Illustrator CS4 has unexpectedly quit.
    this started as a Photoshop CS4 problem where I also can't save for web & devices any more. before people jump down my throat again for mentioning this Photoshop problem on the Illustrator forum - this is for context only. I have the same problem in both applications. I just include this information here in case it helps. the Photoshop message I get is:
    The operation can not be completed.
    savign for web & devices worked totally fine up till last night in Photoshop. haven't saved anything out of Illustrator for web & devices in a while but it used to work just fine.
    I have a PC and use Windows 7. All my Adobe products are up-to-date.
    Any help is much appreciated. Thx a lot!

    thank you very much. at least it happened before. I was seriously doubting myself. tried trashing preference files multiple times, but that didn't help. will reinstall everything and see if that does the trick.
    thanks again!

  • Fixed Layout EPUB - for multiple devices

    We are looking to create an EMAGAZINE or EPUB with a fixed layout for employee benefit guides that will be viewed on multiple devices (desktops, laptops, tablets, and mobile - both PC and MAC devices) and I am wondering what is the best style to use to accomplish this? With the new fixed layout EPUB, it creatively meets our needs, but will it work on a PC? Or tablet that is not Apple?
    What are the best options for a picture heavy/table heavy online "book" created in InDesign?
    Thanks,
    Jamie

    Hi Jamie,
    Yes you can view your fixed layout epubs on a PC/tablet, there are multiple fixed layout readers available on devices. For PC there is Readium that is a Chrome extension.
    Thanks
    -Anshul

  • Anyconnect for Samsung Devices

    Does anyone have any input on why my Samsung Galaxy Tab 10.1 will not install the Anyconnect for Samsung Devices client from the Android market?

    Hi Kevin,
    How does it fail exactly? What error message do you get?
    Have you installed Samsung's "TouchWiz" upgrade? If not, please install that first.
    Also note that only Android versions issued by Samsung and by Cellular providers are supported.
    http://www.cisco.com/en/US/docs/security/vpn_client/anyconnect/anyconnect24/android-user/guide/android-acug.html#wp191945
    hth
    Herbert

  • Unable to create foreign key: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index

    I am running an SQL(CE) script to create a DB. All script commands succeed, but the DB get "broken" after creating the last costaint: after running the script, viewing table properties of Table2 and clicking on "Manage relations" gives the following error: Unable to create foreign key: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index. Wondering what does that refer to...
    Here it is the script. Please note that no error is thrown by running the following queries (even from code that passing the queries by hand, one-by-one to sql server management studio).
    CREATE TABLE [table1] (
    [id_rubrica] numeric(18,0) NOT NULL
    , [id_campo] numeric(18,0) NOT NULL
    , [nome] nvarchar(100) NOT NULL
    GO
    ALTER TABLE [table1] ADD PRIMARY KEY ([id_rubrica],[id_campo]);
    GO
    CREATE UNIQUE INDEX [UQ__m_campi] ON [table1] ([id_campo] Asc);
    GO
    CREATE TABLE [table2] (
    [id_campo] numeric(18,0) NOT NULL
    , [valore] nvarchar(4000) NOT NULL
    GO
    ALTER TABLE [table2] ADD PRIMARY KEY ([id_campo],[valore]);
    GO
    ALTER TABLE [table2] ADD CONSTRAINT [campo_valoriFissi] FOREIGN KEY ([id_campo]) REFERENCES [table1]([id_campo]);
    GO
    Sid (MCP - http://www.sugata.eu)

    I know this is kind of old post, but did this realy solved your problem?
    I'm getting this same error message after adding a FK constraint via UI on VS2008 Server Explorer.
    I can add the constraint with no errors, but the constraint is not created on the DataSet wizard (strongly typed datasets on Win CE 6) and when I click "Manage Relations" on the "Table Properties" this error pop out:
    "InvalidArgument=Value or '0' is not valid for 'index'.
    Parameter name: index"
    Even after vreating my table with the relation in SQL the same occurs:
    CREATE TABLE pedidosRastreios (
        idPedidoRastreio INT NOT NULL IDENTITY PRIMARY KEY,
        idPedido INT NOT NULL CONSTRAINT FK_pedidosRastreios_pedidos REFERENCES pedidos(idPedido) ON DELETE CASCADE,
        codigo NVARCHAR(20) NOT NULL

  • Attribute Change Run aborted with an error :Not all data indexed for index

    Hi,
    I have an issue where the master data Attribute Change Run  aborted with an error pointing to the BWA:
    Attribute Change Run aborted with an error :Not all data indexed for index
    we tried to load only 0 data into it,the error still occured.

    Detail message is following:
    not all data was indexed for index 'GBP_BIC:XYCH_098('0' for '114')
    creation of The BIA INDEX for infocube 'YBC_SD015' terminated while filling

  • Error Indexing not allowed when marking indexing for document HR_DOC

    Hello all,
    We are able to solve the first problem. Now we have the following error
    "Error Indexing not allowed when marking indexing for document HR_DOC"
    Has anyone idea on how to solve it?
    Thanks a lot.
    Best regards,

    ....and thanks a lot for your feedback in resolving this issue!

  • Index not used for order by/subsequence

    Hello,
    I can't seem to get DBXML to efficiently return an ordered subsequence (so that a web page can do pagination in order). I have 100,000 entries in my test container and the following indexes:
    Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
    Index: edge-element-equality-dateTime for node {}:when
    Index: edge-element-equality-double for node {}:whenNumber
    queryPlan "
    for $x in (collection('test.dbxml')/root)
        order by $x/whenNumber
        return subsequence($x, 1, 10)
    "Gives me a plan with a sequential scan in it:
    <XQuery>
      <Return>
        <OrderByTuple direction="ascending" empty="least" stable="false" collation="http://www.w3.org/2005/xpath-functions/collation/codepoint">
          <ForTuple uri="" name="x">
            <ContextTuple/>
            <QueryPlanToAST>
              <StepQP axis="child" name="root" nodeType="element">
                <SequentialScanQP container="test.dbxml" nodeType="document"/>
              </StepQP>
            </QueryPlanToAST>
          </ForTuple>
          <TreatAs>
            <PromoteUntyped uri="http://www.w3.org/2001/XMLSchema" name="string">
              <Atomize>
                <QueryPlanToAST>
                  <StepQP axis="child" name="whenNumber" nodeType="element">
                    <VariableQP name="x"/>
                  </StepQP>
                </QueryPlanToAST>
              </Atomize>
            </PromoteUntyped>
            <SequenceType type="item()?"/>
          </TreatAs>
        </OrderByTuple>
        <Function name="{http://www.w3.org/2005/xpath-functions}:subsequence">
          <QueryPlanToAST>
            <VariableQP name="x"/>
          </QueryPlanToAST>
          <NumericLiteral value="1.0E0" typeuri="http://www.w3.org/2001/XMLSchema" typename="double"/>
          <NumericLiteral value="1.0E1" typeuri="http://www.w3.org/2001/XMLSchema" typename="double"/>
        </Function>
      </Return>
    </XQuery>The index is used correctly if I do a conditional query as I woudl expect

    Hi,
    These look like queryplan generator issues. I'm looking into it. Thanks.
    Best regards,
    Rucong Zhao
    Oracle Berkeley DB XML

  • Index:0 Size:0 error for non administrator group

    Hello, I have some dasboards and webis that I want to run in the iPad, If I login as Administrator everything is fine, but if I login as any other user I get the error: Index:0 Size: 0 can anyone tell me what I am missing? 
    I already check the note 1836197 - MOB00082 index:0, Size:0 in SAP BI Mobile App when using a non administartor group member  But I still have the error.
    I have these:
    SAP BusinessObjects BI Platform 4.1 Support Pack 5
    Version: 14.1.5.1501
    In all Cases the assigned access level is Full Control ( just to try)
    User: Test
    Authentication Type: Enterprise
    Group: Mobile
    Category: Mobile
    User Security of the Goup Mobile with Full Control :
    Folder:  Root and  Prueba EDU
    Dashboard:   Ventas2015_prueba27Abr  (Inherited)
    Applications:  SAP BusinessObjects Mobile Extra: WebIntelligence, Dashboards, IDT, Universe Designer
    Category: Mobile and to the  Top-Level Security
    Folders
    Root folder:  (CMC-->Folders-->Manage-->Top-Level security-->All Folders-->Add principal 'Mobile' Group  -->Grant user view right)
    Folder for  Webi & Dashboard:  “Prueba EDU”
    Categories
      root categories: (CMC-->Categories-->Manage-->Top-Level security-->All Categories-->Add Principals and Add user 'Mobile'-->Assign Security-->Advanced tab-->Add/Remove Rights-->View objects-->Apply)
    Category Mobile:
    Applications:
    Dashboards
    SAP BusinessObjects Mobile
    IDT
    Universe design tool
    Web Intelligence
    Note 1783173
    Dashboard and Webi
    Login as Test:

    HI Erika,
    This is an unexpected error. This error belongs to ArrayIndexOutOfBound exception of Java framework - where the list of size is 0 or null and you try to access object on that list.
    Since this is a coding defect (which may or may not be resolved by changing configuration). Next steps - I would strongly recommend that you contact Product Support through the official channel .  http://support.sap.com/incident
    Regards,
    Ashutosh

  • Index not being used in Select statement

    Friends
    I have the following SQL statement:
    SELECT
    a.acct,
    a.date_field,
    UPPER(b.feegroup) feegrp,
    SUM (a.fee1) fee1,
    SUM (a.fee2) fee2,
    SUM (a.fee3) fee3
    FROM table1 a, table2 b
    WHERE 1 = 1
    AND a.fee_id = b.fee_id
    GROUP BY a.acct, a.date_field, b.feegroup;
    Both the tables have index on fee_id column. When I run the explain plan for this statement, I am getting the following output:
    Operation | Option | Object Name | Position
    SELECT STATEMENT | | | 560299
    HASH | GROUP BY| |1
    TABLE ACCESS | FULL| table2 | 1
    TABLE ACCESS | FULL| table1 | 2
    Why Oracle is not using the index?
    Edited by: darshilm on Dec 10, 2009 3:56 PM

    The proposed plan is the optimal according to your current conditions in the "where clause" where you have only the equality join condition and therefore the CBO can use HASH JOIN. Using any kind of index access would just increase the amount of required work unless you would add some very restrictive conditions which will select rows from relatively small amount of blocks. Here I have to mention that what really counts in the CBO cost calculation is the amount of blocks accessed and not the number of rows. The "currency" for I/O in Oracle is a block and not a row. CBO always uses an assumption that there is nothing in the buffer cache and it will have to perform a physical read for every block.
    How many blocks will actually be accessed depends on the data distribution. It can happen that every single row that you have to retrieve resides in a different block and although you access only 1000 rows out of a million row table you would have to visit almost every block of that table. For such a situation a FULL TABLE SCAN is the best access path and Oracle will use multiblock I/O for that. On the other side you can have those 1000 rows only in a few blocks and then the index access would be the most appropriate one. For index access Oracle uses single block I/O. Usually the actual situation is somewhere between this two extreme situations. But you can run some tests by yourself and see when an index access will be replaced by a full table scan while you will make your predicates less selective.
    HTH, Joze
    Co-author of the forthcoming book "Expert Oracle Practices"
    http://www.apress.com/book/view/9781430226680
    Oracle related blog: http://joze-senegacnik.blogspot.com/
    Blog about flying: http://jsenegacnik.blogspot.com/
    Blog about Building Ovens, Baking and Cooking: http://senegacnik.blogspot.com

Maybe you are looking for

  • Two Message Servers in one System

    Dear all. I learned from http://help.sap.com/saphelp_nw04s/helpdata/en/84/54953fc405330ee10000000a114084/content.htm that one SAP system has one central instance which contains one message server. But our system seems to have two message servers. Our

  • Not able to run jsp on content server

    Hi, I am trying to create home page for the website using file type as jsp. File creation was successful but when I try to run the web page, instead of launching the web page its asking to save the file. Can any one let me know whats the problem. Is

  • Alias for column names : Urgent

    Hi , I want alias names for my columns. I'm writing query like this inquiryBean.setQueryStatement("SELECT CDE AS "New Code", TXT AS "New Text" FROM TNR004_PY_METH"); But it is giving me an error because there is space between New and Code also double

  • Can't load final cut express

    I can't load final cut express on an emac that has the system requirements. When loading the serial number the ok button will not highlight. I took it back to the shop today and the assistant installed it no trouble at all on the mac. Could their be

  • Can't open sountrack, using third party audio driver

    I'd never had problem with STP before, but than i don't use it to often. I can openthe program using built in audio, but when i try to open the program using my Lexicon i-onix U82S the program starts and after it shows the default startscreen it quit