Closed filzrev closed 6 days ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 78.84%. Comparing base (
fe673ec
) to head (a413786
). Report is 215 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Not sure it can fix #10028 since #10028 is really about loading assets, so fixing only the js will make it a bit less broken but still broken. Guess a more transversal and not related to a particular theme solution is more desired, no?
Close this issue.
Because I've changed approach on my code not to use <base>
tags.
(Instead rewrite entire HTML URLs for 404.md
to Site Relative URL
on site deployment timing)
This PR contents might be useful for people who want to use <base>
tag on custom docfx layout page.
Thought currently there are not such users at this time. So close this PR.
Side note/warning: this is limited to default template usage AFAIK. It will not handle all the links in meta (rdf and friends) and data-xxx
attributes. So customizations to the csx can be needed. (mainly for future readers, not asking any actions)
This PR intended to fix some problem that discussed at #10028
On current docfx modern template implementation.
navrel
/tocrel
absolute URL is resolve by using following code.So when I've modified docfx generated pages URLs to
Site Relative URL
(That starts with '/') based URL. JavaScript errors are occurred on non-site-root pages.This PR fix this issue by adding dedicated code path for
Site Relative URL
.Test I've manually confirmed following patterns and it works as expected.
Site Relative URL
.Absolute URL
.And it also tested on
default
template environment. It ssemsdefault
template processingnavrel
/tocrel
URL as plain string. so no modification needed.