Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot committed Jan 20, 2023
1 parent f8c8053 commit b8daa53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/providers/SnippetsProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function SnippetsProvider({ children }) {
};

const genSnippetLink = (encodedId) => {
// TODO: переделать на получение ссылки вида /users/${login}/snippets/${slug}
const url = new URL(routes.homePagePath(), window.location);
url.searchParams.set('snippet', encodedId);
return url.toString();
Expand Down

0 comments on commit b8daa53

Please sign in to comment.