Skip to content
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

🐛 Fixed navigation links for Ghost sites hosted on a subdirectory #21071

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

sagzy
Copy link
Contributor

@sagzy sagzy commented Sep 23, 2024

ref https://linear.app/tryghost/issue/ENG-1570/support-escalation-links-in-ghost-navigation-settings-are-being

  • for a Ghost site hosted on a subdirectory, e.g. /blog/, adding a navigation link to /blog/page/ was being re-written as /page/
  • fixed the underlying formatUrl utility function and added unit tests

@sagzy sagzy force-pushed the fix/nav-links-for-sites-on-subdirectory branch from 373347f to 4a4d1a6 Compare September 23, 2024 13:55
@sagzy sagzy marked this pull request as ready for review September 23, 2024 15:39
@sagzy sagzy enabled auto-merge (squash) September 23, 2024 15:41
@sagzy sagzy disabled auto-merge September 23, 2024 15:50
@sagzy sagzy enabled auto-merge (squash) September 23, 2024 15:50
@sagzy sagzy disabled auto-merge September 23, 2024 15:51
@sagzy sagzy merged commit 577362a into main Sep 23, 2024
19 of 35 checks passed
@sagzy sagzy deleted the fix/nav-links-for-sites-on-subdirectory branch September 23, 2024 16:37
@sagzy sagzy changed the title 🐛 Fixed navigations links for Ghost sites hosted on a subdirectory 🐛 Fixed navigation links for Ghost sites hosted on a subdirectory Sep 23, 2024
sagzy added a commit that referenced this pull request Sep 24, 2024
…21071)

ref https://linear.app/tryghost/issue/ENG-1570

- for a Ghost site hosted on a subdirectory, e.g. `/blog/`, adding a
navigation link to `/blog/page/` was being re-written as `/page/` in Admin settings
- fixed the underlying `formatUrl` utility function and added unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant