question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Links to the home page generated by themes are not corrected

See original GitHub issue

Some themes link back to the home page by clicking on the blog title or in a footer. These links point to localhost:2368 or whatever port the local ghost instance is running on.

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
ikhwanuddincommented, Sep 11, 2018

Hi, I also experienced the same problem. However, I have tried all the suggestions above and nothing work.

So I am checking some *.hbs files. My issues are:

  1. Wrong URL for twitter/facebook sharing button.
  2. Wrong URL for disqus unique connection.

I check floating-header.hbs and found this:

<a class="floating-header-share-fb" 
href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"

The result is this URL:

https://www.facebook.com/sharer/sharer.php?u=http://localhost:2368/a-blog-post-title/

I think buster failed to convert some url commands become static.

I need to alter the absolute url, but I don’t have a clue. So I modify the code inside `floating-header.hbs like this:

<a class="floating-header-share-fb" 
href="https://www.facebook.com/sharer/sharer.php?u=https://yourblogaddress.com{{url}}"

See… insert your blog address and let alone url without any argument. Deleteabsolute="true".

From this:

u={{url absolute="true"}}

Become this:

u=https://yourblogaddress.com{{url}}

This trick run well too for disqus canonical URL variable.

It works for me … in September 2018.

0reactions
eldiyar7commented, Mar 5, 2017
Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Common WordPress Theme Issues & How To Fix Them
Common WordPress errors with solutions. We address some of the most common WordPress theme issues and provide easy solutions to fix them.
Read more >
Front page link not correct [#3290905] | Drupal.org
Our front page varies by language & is an entity called "homepage"(ECK ... Given this setup, the sitemap.xml file does not have the...
Read more >
Link preview not working - WordPress.org
The page that has the homepage setting displays “my blog uncategorized hello world Author” in the link preview. If I remove the “homepage”...
Read more >
Trade Theme - Homepage Not Showing Properly
It looks like most of the pages (About, Services, etc) are showing up fine, but my homepage does not look correct.
Read more >
Using Extra's Theme Options | Elegant Themes Documentation
By default the theme creates a Home link that, when clicked, leads back to your blog's homepage. If, however, you are using a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found