Skip to content

Commit

Permalink
Relative URL should be allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
Alankarsharma authored Dec 5, 2023
1 parent 2e7a2ba commit 8a5d0c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server/rendering/rendering_service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export class RenderingService {
*/
public isUrlValid = async (url: string, configName?: string): Promise<boolean> => {
if (url === '/') {
return false;
return true;

Check warning on line 369 in src/core/server/rendering/rendering_service.tsx

View check run for this annotation

Codecov / codecov/patch

src/core/server/rendering/rendering_service.tsx#L369

Added line #L369 was not covered by tests
}
if (url.match(/\.(png|svg|gif|PNG|SVG|GIF)$/) === null) {
this.logger.get('branding').error(`${configName} config is invalid. Using default branding.`);
Expand Down

0 comments on commit 8a5d0c6

Please sign in to comment.