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.

paths with query get escaped

See original GitHub issue

Hi, i use a generated image containing query parameters as og image, but the path in the final output include escaped & making the path invalid:

path:

https://images.ctfassets.net/gz0sygvqczyz/1LlU2yNbXooedOqW3UeNA1/b1d427094354ac34cf9dc4f8a319957a/fieldset.png?fit=pad&f=top&w=1200&h=630&bg=rgb:F3F6F9

output:

https://images.ctfassets.net/gz0sygvqczyz/1LlU2yNbXooedOqW3UeNA1/b1d427094354ac34cf9dc4f8a319957a/fieldset.png?fit=pad&f=top&w=1200&h=630&bg=rgb:F3F6F9

The original path is working, while the second one nope, causing a wrong parsing by crawlers.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
garmeehcommented, Oct 23, 2019

Hey @equinusocio, really sorry I only got some time now to really look into this. After doing some digging it seems like this is an issue in React itself. I don’t think there is anything I can on this end.

0reactions
equinusociocommented, Oct 24, 2019

@garmeeh I had to switch to Nuxt because this issue. vue-head for example has a __dangerouslyDisableSanitizers to disable string encoding inside all meta or __dangerouslyDisableSanitizersByTagID to disable encoding on specific elements.

__dangerouslyDisableSanitizersByTagID: {
   'ip:image': ['content'],
   'og:image': ['content'],
   'twitter:image': ['content']
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to automatically escape item paths for use in Sitecore query
I am building a query string in code which uses an item path. If the item path contains a hyphen or underscore, then...
Read more >
What characters must be escaped in an HTTP query string?
The answer lies in the RFC 3986 document, specifically Section 3.4. The query component is indicated by the first question mark ("?
Read more >
path should also be escaped · Issue #25 · elm/url - GitHub
I will say that it DOES escape query parameters... but if you are building an API url for example and some parameters are...
Read more >
Spaces in URL file path (as opposed to query string) are ...
Spaces in URL that are before a query parameter should be escaped as %20 during a copy/paste operation, rather than a + symbol....
Read more >
HttpRequest.get_full_path does not escape # sign in the url
request.get_full_path() returns the ​path with the query string (if there is one). The result doesn't have any particular encoding or escaping applied.
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