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

Support sites deployed on a path other than "/" when generating header and footer links #325

Conversation

eddgrant
Copy link
Contributor

Hey folks 👋

What’s changed

v3.2.0 contained changes to support support sites which were configured to generated relative links. At the time I implemented these changes we were not making use of the header_links and footer_links links functionality. We have since started using both which caused me to realise that the relative link generation did not work for either.

This PR extends the relative link generation functionality such that it works for both header and footer links. I have also updated the tests to be more comprehensive so that they test link generation for both internal and external links, as I found that external links were not being correctly identified in all cases previously.

Hope this all makes sense. Would be great if someone could give it some 👀 and consider it for inclusion. Very happy to discuss and fettle if required.

Cheers!

@eddgrant eddgrant force-pushed the fix-header-and-footer-links-when-generating-relative-links branch 2 times, most recently from 38c3bf1 to 22d9a8b Compare May 22, 2023 09:53
@lfdebrux
Copy link
Member

lfdebrux commented Jun 6, 2023

A couple of small comments, otherwise looks good to me. Thanks for submitting this PR, sorry it's taken a while to be reviewed.

@eddgrant eddgrant force-pushed the fix-header-and-footer-links-when-generating-relative-links branch from 22d9a8b to 7e16828 Compare June 7, 2023 08:33
@lfdebrux lfdebrux merged commit da78007 into alphagov:main Jun 7, 2023
@lfdebrux lfdebrux changed the title TRG-668: Support sites deployed on a path other than "/" when generating header and footer links. Support sites deployed on a path other than "/" when generating header and footer links Jun 7, 2023
@lfdebrux lfdebrux mentioned this pull request Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants