Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

168
Views
Valid URL - Can we add a path after query string in URL

Is the below a valid URL: https://www.example.com/news?check=check-if-a-javascript-string-is-a-url/after-check

If not, what if I want to add some new path after a query string? For example "after-check" here

I've also tried putting a hash after query string to terminate but shall after-check consider as a new pathname? https://www.example.com/news?check=check-if-a-javascript-string-is-a-url#/after-check

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

First

This is a VALID URL: https://www.example.com/news?check=check-if-a-javascript-string-is-a-url/after-check.

The path is /news, and query parameters is

{
  "check": "check-if-a-javascript-string-is-a-url/after-check"
}

So I guess this is not the result you want.

Second

The second URL https://www.example.com/news?check=check-if-a-javascript-string-is-a-url#/after-check is also a valid URL.

The path is news and query parameters is {"check": "check-if-a-javascript-string-is-a-url"}. And the part #/after-check is HASH but not path.

about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!