fix(frontend): remove double encoding of series name in URL (#262)
Angular Router already encodes path segments automatically. Manually calling encodeURIComponent() before router.navigate() caused double encoding (%25 in URL), which was rejected by Spring Security's StrictHttpFirewall on page refresh (F5), resulting in a Whitelabel Error Page. Remove encodeURIComponent() from 3 navigation call sites and the corresponding decodeURIComponent() workaround in series-page component. Co-authored-by: de.banker <hub9ray@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
de.banker
Claude Opus 4.6
parent
c1711dd0c1
commit
a92459ddbf
@@ -156,7 +156,7 @@ export class UrlHelperService {
|
||||
|
||||
filterBooksBy(filterKey: string, filterValue: string) {
|
||||
if (filterKey === 'series') {
|
||||
return this.router.createUrlTree(['/series', encodeURIComponent(filterValue)])
|
||||
return this.router.createUrlTree(['/series', filterValue])
|
||||
}
|
||||
|
||||
return this.router.createUrlTree(['/all-books'], {
|
||||
|
||||
Reference in New Issue
Block a user