You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not uncommon to share global style sheets for various pages of a site. SvelteKit provides %sveltekit.assets% placeholder to src/app.html but not to src/error.html. IMHO error pages should also share the same theme as the rest of the application/site, and so it comes as a surprise to discover that I cannot access the global stylesheets using %sveltekit.assets%. I am failing to see the reason as to why it is not made available in this context.
Describe the proposed solution
I would like to see %sveltekit.assets% made available to src/error.html page as well.
My first thought was to figure out where these placeholders are replaced and fix it. But thought I should ask if there is a reason for the omision.
The fix I have feels out of place but it is to simply use the src relative absolute path. Which implies that if I change the location of my assets folder, then I have to remember to go fix my error.html page, which is not ideal.
Alternatives considered
Get into the codebase and fix it!
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered:
vijay8i
changed the title
Make %sveltekit.assets% placeholder available to src/error.html` page
Make %sveltekit.assets% placeholder available to src/error.html page
Sep 24, 2024
Describe the problem
It is not uncommon to share global style sheets for various pages of a site. SvelteKit provides
%sveltekit.assets%
placeholder tosrc/app.html
but not tosrc/error.html
. IMHO error pages should also share the same theme as the rest of the application/site, and so it comes as a surprise to discover that I cannot access the global stylesheets using%sveltekit.assets%
. I am failing to see the reason as to why it is not made available in this context.Describe the proposed solution
I would like to see
%sveltekit.assets%
made available tosrc/error.html
page as well.My first thought was to figure out where these placeholders are replaced and fix it. But thought I should ask if there is a reason for the omision.
The fix I have feels out of place but it is to simply use the
src
relative absolute path. Which implies that if I change the location of my assets folder, then I have to remember to go fix my error.html page, which is not ideal.Alternatives considered
Get into the codebase and fix it!
Importance
would make my life easier
Additional Information
No response
The text was updated successfully, but these errors were encountered: