all InfoSec News
Decorate the Symfony router to add a trailing slash to all URLs
July 5, 2024, 1:21 p.m. | Chris Shennan
DEV Community dev.to
I recently noticed an issue between the links that Symfony generated for Password Angel and the actual links that are in use. When Symfony builds the URL there are no trailing slashes i.e. /terms, however, as Password Angel is hosted in an S3 bucket as a static site a trailing slash is part of the live URL i.e. /terms/. This causes 2 problems:-
- Unnecessary redirections - All links in the page will refer to the link version without …
generated issue links password php router routing s3 bucket static symfony terms url urls webdev
More from dev.to / DEV Community
Jobs in InfoSec / Cybersecurity
Network Engineer (travel required)
@ General Dynamics Information Technology | USA VA Springfield - Customer Proprietary (VAC421)
NOSC (Network Operation Security Center)– Battle Captain
@ General Dynamics Information Technology | USA FL MacDill AFB - 7115 S Boundary Blvd (FLC096)
Senior Director, Information Governance and Privacy
@ IQVIA | Sofia, Bulgaria
Manager, Internal Audit
@ Vancity | Vancouver, British Columbia, Canada
Risk Consulting - Protect Tech - Manager - ITAC
@ EY | Bengaluru, KA, IN, 560016
Software Engineering Manager
@ BT Group | RMZ Ecoworld, Devarabeesanahal, Bengaluru, India