• Hi folks,

    Please help if you know how…

    all links on the web-site work properly, but the one in the Menu that’s added via Menus->Links (linking to YouTube channel) causes my web-site to redirect to homepage (while YouTube page peacefully opens in the next tab).
    I’ve refreshed Permalinks in WordPress, no result.
    .htaccess that sits in the same folder where all WP files are (root->web) reads the following:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    .htaccess file that sits in the root folder (not sure if it should be there actually) reads the same:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Any idea what’s causing the link to redirect to HP? I think actually there was another link that caused the same, but it happened just once or twice, I deemed it “clumsy click” of mine leading to HP appearance. Now not sure at all..

Viewing 15 replies - 1 through 15 (of 23 total)
  • Hi, lesnaya, & welcome. You haven’t provided us w/a link to your site, which could prove beneficial for us to look at. 1 of the options when adding a link is to check whether to open a link in a new tab or window. If that option was inadvertently checked, this could obviously be the cause of that behavior.

    W/o a link to your site, though, it’s really difficult to say much of anything definitive.

    Thread Starter lesnaya

    (@lesnaya)

    Hi abletec, thank you very much for your response and welcoming! I did check the “open in a new tab” box, as I need YouTube page to open in a new tab… But all other external links (that are in the text though, not Nav bar) also open in a new tab – and causing no issue.

    Here is the web-site `javiersainz dot net/’

    So the misbehaving link is under “Videos” menu option.

    Hi again, lesnaya. I’ve looked at your videos, & clicking the links on all 3 open a separate Youtube tab when using Internet Explorer 11. Is that the behavior you expect? There also appears to be no difference in any of the links in terms of their structure, etc.

    What I am seeing, though, which is weird, is no menu links on your homepage–just a note that if the content doesn’t render properly to update my browser. I tried this in both the latest Firefox & Internet Explorer. However, since this WordPress support volunteer happens to be totally blind & uses a screenreader, I’m contacting my sighted friends out there in WordPress support land to determine if this is a function of my screenreader not rendering the content properly, or if there’s something wrong w/the display of the homepage itself. The really bizzarre thing is that when I go to the videos page, all the menu links appear to be there, & they also show up in the source of the homepage.

    It does appear as though your permalinks are set to the default. You might wish to try setting them to a more search engine friendly format, such as ‘Post name’, for example.

    I’ll put out my SOS as soon as I finish this reply. That will determine whether this is an accessibility issue or whether your menu is in truth not appearing on your homepage. The latter indicates a serious problem for everyone–the former for a minority group, though I certainly know blind harpists who might like either lessons or an instrument, & since I can’t imagine that everyone, their brother, sister, dog, & cat are clambering to buy a harp or learn to play one, leaving money on the table because a site is inaccessible might not be something you’d want to do. But the 2 fixes will be very different, and I need to see which 1 is applicable.

    That is really strikingly beautiful music, btw. I just *love* harp music! I could chill out to that the whole day long–& of course get absolutely nothing done.

    Thread Starter lesnaya

    (@lesnaya)

    Hi abletec, thank you so much for your reply!
    I now need to re-read it several times, as what you write is a puzzle for me – since everything works perfectly fine on all Macs that I’ve tried (no PC at hand – but rendering at https://netrenderer.com/ shows that only starting IE6 there are issues at least with layout).

    When you click YouTube videos link at the menu – the original page from which you click jumps to Homepage for some reason. While YouTube opens beautifully in the next tab. Do you have the same behaviour on the original page from where you click the link?

    Well, now I start re-reading what scares me a bit, as first impression was that now only a narrow circle of people sees the page rendered correctly, and outside of that lovely illusion the reality is ugly… Will write more after processing…

    ***
    Harp music. Yes. It is fantastic. Especially when it’s not modern neo-harp with nylon strings, but old style instrument – clarsach, with brass and golden strings… Brings you to another world.

    Thread Starter lesnaya

    (@lesnaya)

    Abletec, now when I reread your message:

    So actually no Menu links on the homepage is “by design”…….. It’s supposed to be like that.. Entering through Harp.. See, philosophical thingy .. ??
    I know HP design is not SEO friendly, but… there is no goal for Javier to be Justin Bieber, so poor SEO at some areas is Okeish i guess…

    As for permalinks – I just yesterday made sure they are Post-Name based, double-checked just now in both WP Settings and live page itself – they still are.

    Hi, lesnaya. Ok–well–perhaps your caption text for that image could be:
    Renaissance Harp. Cross-strung Baroque Harp. Early Irish & Scottish wire-strung Harp–enter the site here. I’m just not entirely sure that folks, whether they can see or not, would understand that link gives them access to the rest of the site.

    Meanwhile, what is happening for me is that, when I click any of the videos, a YouTube tab opens, and my browser is redirected there. The homepage is open, but in another tab. Once I close the video tab, the homepage reappears. Is that the behavior you want?

    Thread Starter lesnaya

    (@lesnaya)

    Abletec, well, supposedly the caption text for the Harp-Enter-link is “~ENTER~”. It appears like this on all machines I’ve tried. When I go to homepage and hoover over harp – i see “~ENTER~” yellow caption label..
    But if I understood you correctly on PC it picks up some other meta/description, and doesn’t say “ENTER” when hoover on… Will look into that, thank you very much.

    The behaviour you described is the supposed behaviour, yes.

    But when you go to Nav Bar -> “Videos” tab -> “YouTube channel” – if you click that “YouTube channel” link – the page from which you click it jumps to HomePage. And YouTube opens in the next tab. So that jump to Homepage – is not by design, and shouldn’t be like that. YouTube opening in the next bar – that’s how it should be, yes. But so far i haven’t found a solution for the HP jump that’s triggered by “YouTube channel” Menu item click.

    Hi again, lesnaya. I now understand what you’re saying. Sorry it took me so long.

    If I am correct, you added this as a link yourself. If that be the case, could you please try changing
    https://www.youtube.com/user/MrJaviersainz
    to
    https://www.youtube.com/user/MrJaviersainz/
    & see if that helps?

    Thread Starter lesnaya

    (@lesnaya)

    Hi abletec, no worries, I know I’m not very clear myself..
    Thank you very much for trying..

    I’ve tried your suggestion, corrected the link – still the same, alas. “Root” tab jumps to Homepage..

    Then I think what we need to consider doing at this point, lesnaya, is to disable all your plugins & see if that helps the situation. If it does, we can re-enable them 1 by 1 till we find that redirect.

    Thread Starter lesnaya

    (@lesnaya)

    abletec, no result, alas. Disabled all of them, no change…

    lesnaya, did you clear your browser’s cache after making those changes?

    Thread Starter lesnaya

    (@lesnaya)

    abletec, yes, cleared cache, and moreover ran in a virgin for that link browser.. Just double-checked.. alas..

    This appears to be an issue with Safari 5.

    Your clickable div:

    <div id="header" onclick="location.href='https://javiersainz.net/';" style="cursor: pointer;">

    does not work in Safari 5. (though it does seem to work on Safari 4 on an old iPhone 4.)

    You need to either change the above HTML to:

    <div id="header" style="cursor: pointer;">

    which essentially removes the clickable part of the div, so it’s probably just best to eliminate the clickable div altogether. Otherwise the cursor pointer change the header background won’t make sense.

    or

    take out the target="_blank" in the youtube link. I’m pretty sure you can keep the clickable div as long as any links inside the clickable div don’t use target="_blank". (in regards to Safari.)

    Thread Starter lesnaya

    (@lesnaya)

    Scriptrunner, indeed! Regardless of browser, actually, since the header div is clickable and leads to HP, any _blank link in the menu will have that behaviour.. I’ve just double-checked with another item in the menu – same issue as soon as link has _blank.

    Well, since I don’t want to remove header clickability, and since YouTube should open in a new tab – I’ll just move the YouTube link to somewhere away from the header… or remove header link indeed….

    Thanks much for pointing out the div properties and possible solutions!!

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Only 1 link redirects to homepage – rest are fine.. how to fix?’ is closed to new replies.