Skip to content

Link Expiration#1109

Merged
realodix merged 20 commits intomasterfrom
expired-links
Mar 19, 2025
Merged

Link Expiration#1109
realodix merged 20 commits intomasterfrom
expired-links

Conversation

@realodix
Copy link
Copy Markdown
Owner

@realodix realodix commented Mar 19, 2025

Introduce link expiration.

This feature allows users to be redirected to a new destination URL once the old one expires, all without altering the short link. You can specify a long link including a time limit or a click count for when the URL should refresh. When the original link becomes outdated, visitors will automatically be directed to the new URL. If you do not set an expiration URL, customers will encounter an error page that says, “This link has expired".

image

image

@realodix realodix merged commit 7384e31 into master Mar 19, 2025
7 checks passed
@realodix realodix deleted the expired-links branch March 19, 2025 19:35
realodix added a commit that referenced this pull request Mar 26, 2025
it simplifies the handleRedirect() method, allowing it to focus solely on visitor tracking and redirection.

#1109
realodix added a commit that referenced this pull request Mar 30, 2025
Protect links with password
#1108

Link Expiration
#1109

Merge the author's name into the destination link field
6929f2d
realodix added a commit that referenced this pull request Apr 1, 2025
Link Expiration
expired_clicks, expired_url, expired_notes
#1109

password
#1108
realodix added a commit that referenced this pull request Apr 3, 2025
Protect links with password
#1108

Link Expiration
#1109
realodix added a commit that referenced this pull request Apr 5, 2025
realodix added a commit that referenced this pull request Apr 6, 2025
realodix added a commit that referenced this pull request Apr 17, 2025
All these files are more than 1 month old, so I assume you have run `php artisan migrate` before.

#1107
- 2025_03_15_080953_urls_add_android_ios_column.php

#1108
- 2025_03_16_222030_urls_add_password_column.php

#1109
- 2025_03_17_180914_urls_add_expire_column.php
realodix added a commit that referenced this pull request Jul 30, 2025
Introduces unit tests to verify the behavior of the Url::isExpired method under various conditions, including expiration by date and click limits. Ensures correct handling of expired and non-expired URLs.

related:
- #1109
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