Skip to content

✨New Linting check - Use preferred SSW URL for local links #1695

@Calinator444

Description

@Calinator444

Cc: @wicksipedia, @babakamyljanovssw, @amankumarrr

Pain

Our Cloudflare worker automatically redirects any traffic from ssw.com.au to www.ssw.com.au. SSW Rules allows people to add local links beginning with "https://ssw.com.au". Because Cloudflare redirects these links they can't be indexed (although the redirect target likely will be indexed).

Suggested Solution

We should add a linter that checks updated rules for internal absolute URLs with the missing "www".

Tasks

  • update linter to ensure internal absolute URLs start with "www"
  • retroactively update internal URLs in SSW.Rules.Content to match this update rule

More Information

When updating the existing rules you may need to create multiple pull requests. There are 2800 rules with the incorrect URL and github only allows you to view 500 changes in review mode.

Metadata

Metadata

Labels

02-medium2 to 4 daysType: DevOpsSetting up of DevOps processes e.g. GitHub Actions, Azure DevOps Pipelines etcType: FeatureA suggested idea for this project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions