Using Gatsby how to link to a static html file and open in the same page? - history

So I have my gatbsy blog with a link static. But when I click it says that gatsby can't find the page. Now I need to reload to actually get the static.html file.
Note that I'm using a simple a tag and not the gatsby-link. I'm not using pushState from history, so not sure how it actually does a soft load.
I want to open in the same page, not target _blank like the how has been "solved" here https://github.com/gatsbyjs/gatsby/issues/2928
Any suggestions on how to fix this?
Thanks

That should normally work. Perhaps you've installed https://www.gatsbyjs.org/packages/gatsby-plugin-catch-links/?=cstc which is catching the link and trying to resolve it within Gatsby?

Related

Rotating banner images are displayed one below the other

When I try to implement rotating banner (RotatingImagesComponent)images are getting displayed one below the other in hybris 1905 on Any quick help is appreciated. I have tried SimpleResponsiveBannerComponent, but same effect.
I assume you're trying to add a slider/carousel to your storefront.
The RotatingImagesComponent is a container used to render multiple BannerComponent components in a carousel.
Try adding BannerComponent type of components inside the banners section of RotatingImagesComponent.
faced a similar issue in past, in my case it was because of conflict between different versions of the bootstrap file(stand-alone file and CDN). If no problem with the hybris, please check the UI side.
That looks like your static files (js, CSS, etc) were not loaded properly.
Check first the console and network in the browser's developer tools for the particular page. to identify the errors that might be there

Strange URLs when culture is enable

I am running Kentico 12.0.26 MVC.
When adding links via the inline widget editor (MediumEditor), the final URL that gets generated has a strange URL path, which is not a pretty URL for SEO.
http://localhost/cmsctx/pv/administrator/culture/en-US/wg/54e1b893-56a5-455b-9f89-37433f2f4365/readonly/0/ea/1/h/98d86f48b5376d0f10eb44df47afb782729ba12751defe6a5ce98c918950785e/-/products/Tube-Pipe-Systems/FL-WELD-P-ORB?uh=b0542cb25017b58c3ebde4855543bcea15269abf4d7458251db4ff128f2feb30&administrationdomain=http%3A%2F%2Flocalhost
Not all links have this, but when this links where added, it was using the clean relative URL of the page, I think maybe after enabeling the Kentico culture feature, they somehow got update like that, but not all links got affected. I am still not entirely sure at what point to they get updated like that.
I also notice that links that are added via the page type editor (CKEditor) are fine and don't seem to run into this issue.
Please advise, thanks

Google Chrome Extension Getting Started Tutorial not working

I'm trying to learn about google chrome extensions so from this question I went to this tutorial.
I followed the instructions but both the change of the page's color when clicking the button and the options page don't work.
To make sure I didn't missed anything I downloaded the completed extension but I got the same result.
Why does it not change the page's color when I click the button on the popup and when I go to the extension's options the page is blank? Is the tutorial obsolete/has something wrong in the code that wasn't updated? Can it be fixed/how?
The only related questions I have seen seem to be old when the example extension/tutorial was different.
This bug is tracked here: https://bugs.chromium.org/p/chromium/issues/detail?id=827804
It seems that the scripts have some errors.
I have uploaded fixed scripts to the bugtracker.
You can try them.

Preloading web pages

I want to write a module? an addon? a plugin? an extension? to a web browser, which will preload all web pages by links, which could be found on a "current" web page - a web page on which user is currently on. After, if user want to switch to some other web page by a link from "current", browser should just open that preloaded page from somewhere, where we store preloaded pages, and do the same actions from new " current ". So, the question is, which of above variants (module? an addon? a plugin? an extension?) could solve my problem, (because as I understand, some of them can have limited functions), or maybe I have to edit the source code of browser, and which browser would you suggest to work with? And if you know any information source, which could help me in understanding how to implement it, I'd be grateful if you post a link! (I'd really appreciate a full answer, because I didn't found much info on the internet about this theme). Thank you!

Orchard CMS Adding a links in HTML widget

I'm trying to add links to pages in the HTML widget.
I'm currently running orchard as a virtual directory, so I can't use '/'. Also since I'm working on a dev site then copying over to a live site, I'm not sure if the site will be running as a virtual directory or from the root.
I've just realised that all links entered via the HTML widget will have a problem, since you can't use '~', also it looks like the image links are fixed, so deploying to a different location won't work ie. from localhost\dev to localhost\live
Any ideas?
If you're entering it from the html editor, you don't have any choice but to use a rooted path (/foo). Sure, it can cause problems if you then publish from a vdir into a site without a vdir, but that's how it for now. We're looking at solutions but in the meantime your best bet is to have a dev site that is as close as possible to the production setup.
As pointed out by randompete on codeplex, another solution could be implementing your own IHtmlFilter. I wrote a simple implementation which you can find here: http://orchard.codeplex.com/discussions/279418
It basically post-processes the BodyPart text by replacing all occurences of urls starting with ~/ with a resolved url (using the UrlHelper.Content() method)
If you need to display a link pointing to a static resource, you can use:
#Html.Link(string textlink, string url)
But Html.Link doesn't supports application relatives urls (~/[...] ones)
if you need only the href (as for an img ). It supports ~/ urls.
src='#Href(string url)'
If you need to display a link to an action
#Html.ActionLink(...) <-- lots of overloads.

Resources