Skip to content

fix: prevent source duplication#557

Open
huyenltnguyen wants to merge 1 commit intoyang991178:masterfrom
huyenltnguyen:fix/prevent-duplication
Open

fix: prevent source duplication#557
huyenltnguyen wants to merge 1 commit intoyang991178:masterfrom
huyenltnguyen:fix/prevent-duplication

Conversation

@huyenltnguyen
Copy link
Copy Markdown

The app is currently treating URL with a trailing slash and URL without a trailing slash as different sources, and this can cause duplication.

I'm fixing the issue by finding and removing the trailing slash before the addSource operation is executed.

Tested locally with the following URLs:

  • https://stackoverflow.blog/feed
  • https://stackoverflow.blog/feed/

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.

1 participant