Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7534635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:04:38+00:00 2026-05-30T06:04:38+00:00

I have a WordPress blog at http://themes.visualise.ca/visualise and when a user clicks on a

  • 0

I have a WordPress blog at http://themes.visualise.ca/visualise and when a user clicks on a thumbnail the post is loaded with AJAX (using the jQuery address plugin) . I would like the URL to change at the same time to i.e. for the second thumbnail the url should change to http://themes.visualise.ca/visualise/portfolio/samuel but with the following code it changes to http://themes.visualise.ca/visualise/visualise/portfolio/samuel.

1) So my question is there a way to make the jQuery address replace the current pathname by the destination url’s pathname instead of simply adding it at the end? I would like the solution to work also with http://themes.visualise.ca/ to http://themes.visualise.ca/visualise/portfolio/samuel because the blog might not be hosting in a folder like it is right now.

2) Or maybe there is another way to achieve this?

Here is the jQuery code:

$('.ajaxed,li.menu-item-object-page a').live('click', function(event) {
    var link = $(this).attr('href');
    var rewritepath = $(this)[0].pathname;
    $("html,body").animate({scrollTop: 0}, 300);
    $('#content,.plus').stop().fadeOut('slow', function(){
        $('#board-wrapper').slideDown('slow');
        $('#board').fadeOut('slow', function(){
            $('#board').stop().load(link, function(){
                $('#board').delay(1000).fadeIn('slow', function(){
                    var board_h2 = $('#board').height();
                    $('#board-wrapper').css('height', board_h2 + 'px');
                });
            });
        });
    });
    $.address.crawlable(true).path(rewritepath);
    return false;
});

Many thanks for your time and help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T06:04:40+00:00Added an answer on May 30, 2026 at 6:04 am

    What I did is that I removed the root site url from link url and it works.

    $('.ajaxed,li.menu-item-object-page a').live('click', function(event) {
        var link = $(this).attr('href');
        var toRemove = MySettings.url;
        var url_pathname = MySettings.url[0].pathname;
        var rewritepath = link.replace(toRemove,'');
        ...
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a wordpress blog and want to give people the same user experience
I have a blog on something.wordpress.com , I simply want one post to ALWAYS
This is regarding the following jQuery plugin: http://blog.danawoodman.com/jquery-showhide/ I am using jQuery show hide
I have an atom feed on a wordpress blog here: http://blogs.legalview.info/auto-accidents/feed/atom When I download
I'm using Subscribe2 plugin in my new upcoming WordPress blog ( http://www.adlerr.com ). My
I'm using Wordpress. I have a movie review website called http://filmblurb.org . For my
I have a post-share widget on my wordpress blog. .post-share { width: 80px; padding:
I have a (wordpress) blog where after commenting the users are redirected back to
I have a WordPress blog with numerous URL's I wish to replace from this:
I have a blog (wordpress) and a facebook fan-page for my blog (with more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.