Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with route /:name/next/:first #112

Open
pjacferreira opened this issue Mar 31, 2021 · 1 comment
Open

Problem with route /:name/next/:first #112

pjacferreira opened this issue Mar 31, 2021 · 1 comment

Comments

@pjacferreira
Copy link

This is a continuation of the previous #111 .

I was now experimenting with multiple parameters per URL.

PROBLEM: URL (http://localhost:5000/first/next)

  • OUTPUT: "HELLO FIRST UNDEFINED ! " OK
  • BROWSER HISTORY/URL: modified to http://localhost:5000/first missing /next

PROBLEM: URL (http://localhost:5000/first/next/last)

  • OUTPUT: "HELLO FIRST LAST !" OK
  • BROWSER HISTORY/URL: modified to http://localhost:5000/first/last missing middle /next/

PROBLEM: URL (http://localhost:5000/:first/next/:last)

  • OUTPUT: BALNK PAGE
  • BROWSER HISTORY/URL: not modifed

Browser Console Log with Exception:

Uncaught DOMException: Failed to execute 'pushState' on 'History': A history state object with URL 'http://:last/' cannot be created in a document with origin 'http://localhost:5000' and URL 'http://localhost:5000/:first/next/:last'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants