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

Url manipulation #1154

Merged
merged 3 commits into from
Jan 4, 2018
Merged

Url manipulation #1154

merged 3 commits into from
Jan 4, 2018

Conversation

gauntface
Copy link

R: @jeffposnick

This is a step towards closing #903 (although will add some docs once this PR is approved before closing it).

  • Adds cleanUrls -> Name is to match firebase config, happy to change if something like prettyUrls is better
  • Adds urlManipulation -> This is a function that allows developers to add any additional permutations of a URL that could be precached. I found this will be used, but serves as a helpful escape hatch for any further alterations developers need.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling a73c948 on url-manipulation into ** on v3**.

Copy link
Contributor

@jeffposnick jeffposnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like a flexible approach. Only the one nit about variable naming.

Thanks!

}

let strippedUrl = _removeIgnoreUrlParams(
const noSearchUrl = _removeIgnoreUrlParams(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noSearchUrl sounds like it's completely dropping the search portion, which isn't the case. We're just removing the ignored search parameters. Could you name it urlWithoutIgnoredParams or something similar?

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 8f88fc9 on url-manipulation into ** on v3**.

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.

None yet

3 participants