-
Notifications
You must be signed in to change notification settings - Fork 52
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
convert relative urls to absolute #165
Conversation
I am not 100% certain if this is the right fix. we should probably take a step back and see how other tools solve this. Given how common this is, we cannot be the only one running into this problem. |
@rajatjindal that is a good point. I will look around to see if there is a case of people running into similar issues and potential solutions. On the other hand, I feel this is the most straightforward way to this issue as making links absolute will ensure the routing works as intended. |
@rajatjindal and @karthik2804 is it possible to enforce the removal of a trailing slash upon page load i.e. the server renders the page and never allows a trailing slash |
@rajatjindal Can you qualify why you feel this is not the right fix? Would you have any objections to it as an interim fix if it solves a pain point? Absolute URLs in the Markdown makes authoring a complete bear trap as links are either broken or go to the production version of a page instead of the local one with your edits. |
sorry, my comment is not a blocking comment but just a suggestion to check how other tools might be handling this. |
Awesome, thanks @rajatjindal! @karthik2804 any further concerns are is this safe to ship? |
It just needs a formal review and it should be good to ship. |
Thanks, though from our conversation elsewhere it sounds like it's not strictly needed after all, as long as authors avoid relative paths? But I'm happy to review anyway (not that I know anything about Bartholomew but eh). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel qualified to review this at a detail level but I assume it's been tested in both local and deployed environments and if so then LGTM. Thanks!
8c5e077
to
2458797
Compare
Signed-off-by: karthik Ganeshram <[email protected]> Signed-off-by: karthik2804 <[email protected]>
2458797
to
0a8779d
Compare
address fermyon/developer#481