Jump to content

Archived

This topic is now archived and is closed to further replies.

SamRussell

[Solved] Header button redirects to weird URL

Recommended Posts

SamRussell

My website is www.samrussell.co.uk

 

As you can see on the front page, I have a button on the header that takes the user to the sales page (still under construction) for my latest record. The page that the button should take the user to is:

www.samrussell.co.uk/bach

The problem, is that when the user is on a blog post, for example:

http://www.samrussell.co.uk/why-the-caged-system-sucks/

and clicks the header button, the button takes them to:

http://www.samrussell.co.uk/why-the-caged-system-sucks/www.samrussell.co.uk/bach

which obviously gives a 404 error. 

 

Why is it appending the destination url to the current page URL, rather than just taking the user to the destination URL?

 

 

Thanks!

 

 

Share this post


Link to post
Share on other sites
Simon

You need to put the actual link to the page you want to go to, or add / before it.

 

Share this post


Link to post
Share on other sites
SamRussell

thanks for getting back to me Simon. I don't understand, the page I want the button to goto is:

www.samrussell.co.uk/bach

which is what I entered in the button url section. Now, when I'm on the home page, the header button takes you to the correct url, but when I'm on a blog post, the button url takes you to:

www.samrussell.co.uk/theblogpostexample/www.samrussell.co.uk/bach

instead of 

www.samrussell.co.uk/bach

 

Does that make sense? Sorry for not explaining it very well in my original post.

 

Share this post


Link to post
Share on other sites
Simon

www.samrussell.co.uk/bach is not an absolute url ..

http://www.samrussell.co.uk/bach is an absolute url

/bach is a relative url

Share this post


Link to post
Share on other sites
SamRussell

I've been wondering for years whether or not having the http:// mattered or not, talk about amateur hour on the paleness forums.

That all works now, thank you for helping with that Simon! Have a great weekend.

Share this post


Link to post
Share on other sites
Simon

This topic has been marked as solved.

Share this post


Link to post
Share on other sites

  • Similar Content

    • mno
      By mno+
      The section PageHeader in DMS was very helpful to have a customized title, with background things, specially in archive pages.
      I haven't found anything similar in PL5 and I have to manually go to every tag and category to make custom titles manually using elements like masthead or just text.
      Is it possible to have the section PageHeader added back to PL5?
    • dgsarnow
      By dgsarnow+
      I am using the PageHeader component, but the default is really tall. I have found where I can change the prescribed height for the section (172px). I would like to shrink this down to 100px, but that messes with the position of the text. Can anyone tell me how to reduce the size of this section and still keep the Page Title vertically centered?
       
      Thank you,
       
      Dave
    • damaca
      By damaca
      I've been hunting around for documentation for PageHeader, but it seems that I just can't find it.
       
      All I want to show is the relevant category selected by the user, such as 'Showcase', with no additional garbage provided with the default configuration as shown in the attached image.
       
      How can this be achieved?
    • michaeldallas
      By michaeldallas
      When I add a PageHeader Section to my Page, it seems to have a native Parallax effect (i.e. webkit transition). I have tested it on several browsers and devices. It doesn't work very well on most. I have even had friends log on and tell me what they see. The effect basically "chops off" the heading text at random heights. It seems to work particularly badly on IOS devices (e.g. iPads). Other PageLines Sections have the ability to enable and disable webkit effects.
       
      How would I disable this effect?
       
      Here is the site: http://sitedevelopmen.wpengine.com/retirement-solutions-introduction/
       
      Again, the effect works fine on some devices, but lousy on many others. I want to turn this off please.
×