Closed cadenyoung-st closed 1 month ago
Thanks so much for your help! I’ll review this and commit it Monday!
From: Caden Young @.> Sent: Friday, September 6, 2024 2:14 PM To: sbauguessBAH/ITS-JPO-Astro-Public @.> Cc: Subscribed @.***> Subject: [External] [sbauguessBAH/ITS-JPO-Astro-Public] Generate URLs at build time based on the base/subdirectory specified (or none) (PR #1)
Added a new function to the lib folder called "base_url" that takes in an absolute URL and appends the base URL from the astro config. This enables the full absolute URL to be generated at build time. Can be used in cases such as link tags,
Added a new function to the lib folder called "base_url" that takes in an absolute URL and appends the base URL from the astro config. This enables the full absolute URL to be generated at build time. Can be used in cases such as link tags, a tags, etc where the full path might not get automatically generated by Astro at build time. Will allow the site to be hosted at a demo/test subdirectory route by changing the base property in the Astro config.
Additionally, added in this new functionality in a number of places.
You can view, comment on, or merge this pull request online at:
https://github.com/sbauguessBAH/ITS-JPO-Astro-Public/pull/1https://urldefense.com/v3/__https:/github.com/sbauguessBAH/ITS-JPO-Astro-Public/pull/1__;!!May37g!OxAHEvt0dVzGscEN72qUkWqazPygIepjUM2z3X6nHFRrxbuIRIPkgsLePa_L8NIIVqZgX8lffIPENeNcmjwL-ne-_RE$
Commit Summary
File Changes
Patch Links:
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/sbauguessBAH/ITS-JPO-Astro-Public/pull/1__;!!May37g!OxAHEvt0dVzGscEN72qUkWqazPygIepjUM2z3X6nHFRrxbuIRIPkgsLePa_L8NIIVqZgX8lffIPENeNcmjwL-ne-_RE$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/BK5B4UBCXCRTLMVJENBFGETZVHWHFAVCNFSM6AAAAABNZB53TWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYTAOJWGU3TQMI__;!!May37g!OxAHEvt0dVzGscEN72qUkWqazPygIepjUM2z3X6nHFRrxbuIRIPkgsLePa_L8NIIVqZgX8lffIPENeNcmjwLUXkGPL8$. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>
Added a new function to the lib folder called "base_url" that takes in an absolute URL and appends the base URL from the astro config. This enables the full absolute URL to be generated at build time. Can be used in cases such as link tags, a tags, etc where the full path might not get automatically generated by Astro at build time. Will allow the site to be hosted at a demo/test subdirectory route by changing the base property in the Astro config.
Additionally, added in this new functionality in a number of places.
Feel free to merge in if you want to use this.