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

Support multiple placeholder url tokens #43

Merged
merged 3 commits into from
Nov 10, 2023
Merged

Support multiple placeholder url tokens #43

merged 3 commits into from
Nov 10, 2023

Conversation

stlava
Copy link
Member

@stlava stlava commented Nov 10, 2023

Allows for having multiple tokens in secondary url.

For example:

go link: go/foo/111/222
secondary url: https://example.com/abc/%s/def/%s
result: https://example.com/abc/111/def/222

go link: go/foo/111/222/333
secondary url: https://example.com/abc/%s/def/%s
result: https://example.com/abc/111/def/222/333

go link: go/foo/111
secondary url: https://example.com/abc/%s/def/%s
result: 400 error (more %s than tokens)

Copy link

@masterginger masterginger left a comment

Choose a reason for hiding this comment

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

I've been looking for this feature for a long time :)

@stlava stlava merged commit 7a03cf4 into main Nov 10, 2023
1 check passed
@stlava stlava deleted the stlava-patch-1 branch November 10, 2023 18:34
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.

2 participants