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.

Validating the to-URL

See original GitHub issue

In this PR a row was added to the _redirects.txt that looks like this:

/en-US/docs/Firefox     11

If you run the yarn tool validate-redirects it does not complain.

That to-URL doesn’t look like a valid URL.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fiji-flocommented, Nov 3, 2021

I think that’s fixed:

yarn content validate-redirects

Checking /Users/fiji/github/content/files/en-us/_redirects.txt
info: Unable to load redirects: Error: To-URL has to be external or start with / (11)

error: 🔥 Errors loading redirects 🔥
0reactions
schalkneethlingcommented, Nov 3, 2021

@fiji-flo is this still an issue to address?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Validating URL in Java - Baeldung
The toURI() method is important here as it ensures that any URL string that complies with RC 2396 is converted to URL.
Read more >
How to Validate URLs in JavaScript - freeCodeCamp
How to Validate URLs in JavaScript ... A Uniform Resource Locator (URL) is what leads you to a page or file on the...
Read more >
How to validate URL address in JavaScript? - Tutorialspoint
In this tutorial, let us discuss how to validate URL addresses in JavaScript. A URL or Uniform Resource Locator identifies web pages, ...
Read more >
How to check for a valid URL in Java? - Stack Overflow
Sun's approach - check the network address. Sun's Java site offers connect attempt as a solution for validating URLs. Other regex code snippets:....
Read more >
<input type="url"> - HTML: HyperText Markup Language | MDN
The input value is automatically validated to ensure that it's either empty or a properly-formatted URL before the form can be submitted.
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