Generated script/resource urls are rooted, can they be relative?
See original GitHub issueHave you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Description
Lovely project ❤️
The urls generated for scripts etc are rooted urls. That is they start with /
e.g.: <script src="/_next/static/chunks/webpack-203a6ceb71ee99ad.js">
However if the index.html is not hosted in the web side root, e.g. “http://example.com/event-catalog/index.html”, loading the page will result in 404s and a broken site.
Steps to reproduce
- Buld site.
- Host on a path, not on a root.
Expected behavior
Urls should be non-rooted / relative.
e.g. <script src=“_next/static/chunks/webpack-203a6ceb71ee99ad.js”
Note, no /
at start.
Actual behavior
Your environment
- EventCatalog version used: “@eventcatalog/core”: “0.2.19”
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Node v14.18.0
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Win 11.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Change the requested url of WebResource.axd
This intercepts the stream to the page and replaces all occurrences of "/WebResource.axd" with "WebResource.axd". As it's a relative path it resolves ...
Read more >Relative URLs | ASP.NET - Andrew's Tutorials
If we create a new folder, and place a new page based on our masterpage in it, its links will be relative to...
Read more >ScriptManager uses Website-root instead of Application root ...
The application named 'TestPfade' is located under the website's root named 'Default'. It is not only a virtual directory but defined as an ......
Read more >Understanding Relative Urls - Brian Vander Plaats
With this change, the leading / indicates the root of the website. It is still a relative path, but it is “relative” to...
Read more >ASP.NET Routing… Goodbye URL rewriting?
Added a new post that might help you resolve issues with relative file ... NET page (if you want to use an ASPX...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @dytyniuk for helping out on this one 🙏🙇
@damianh will close for now, if you have any more issues feel free to reopen 😃.
Hello @boyney123
Could you be so kind and label this issue as “not a bug” and “Implemented”, please? 😉