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

Assets conflict with Link when it contains parameters #2530

Closed
baxiry opened this issue Oct 15, 2020 · 3 comments
Closed

Assets conflict with Link when it contains parameters #2530

baxiry opened this issue Oct 15, 2020 · 3 comments

Comments

@baxiry
Copy link

baxiry commented Oct 15, 2020

Assets cannot be submitted to dynamic routed pages. Each page link contains parameters that cannot access the assets.
for example:
router.Static ("/a'', "./assets")
And the
router.GET ("/acount /:name'', acount)
The browser does not request assets like this:
http://localhost:8080/a/imgs/turtel.jpg
Instead it sends the request like this:
http://localhost:8080/acount/a/imgs/turtel.jpg
If the assets are presented in a corresponding path, for example:
router.Static ("/acount/a'', "./assets '')
A new conflict will arise with router.GET ("/acount/:name", acount)

@baxiry baxiry changed the title assets The assets are in conflict with the Link Parameter Oct 15, 2020
@baxiry baxiry changed the title The assets are in conflict with the Link Parameter Assets conflict with Link when it contains parameters Oct 15, 2020
@athe0i
Copy link

athe0i commented Oct 20, 2020

@bashery hey! unfortunately this is a known issue.... you can read more about it here: #2016

@baxiry
Copy link
Author

baxiry commented Oct 20, 2020

@athe0i Thanks

@baxiry baxiry closed this as completed Oct 20, 2020
@baxiry
Copy link
Author

baxiry commented Oct 20, 2020

#2416

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