Skip to content

Commit 102ba69

Browse files
simonhampclaude
andcommitted
Fix hardcoded URLs in notifications to use correct dashboard route paths
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ad8e281 commit 102ba69

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

app/Notifications/LicenseKeyGenerated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function toMail(object $notifiable): MailMessage
4444
->action('View Installation Guide', url('/docs/mobile/1/getting-started/installation'))
4545
->line('If you need to manage your subscription for this license, you can do so on [Stripe](https://billing.stripe.com/p/login/4gwaGV5VK0uU44E288).')
4646
->line("If you have any questions, please don't hesitate to reach out to our support team.")
47-
->lineIf($this->subscription !== Subscription::Mini, 'As a Pro or Max subscriber, you can manage license keys associated with your license in our [License Manager](https://nativephp.com/customer/licenses).')
47+
->lineIf($this->subscription !== Subscription::Mini, 'As a Pro or Max subscriber, you can manage license keys associated with your license in our [License Manager]('.route('customer.licenses.list').').')
4848
->lineIf($this->subscription === Subscription::Max, 'As a Max subscriber, you also have access to the NativePHP/mobile repository. To access it, please log in to [Anystack](https://auth.anystack.sh/?accountType=customer) using the same email address you used for your purchase.')
4949
->salutation("Happy coding!\n\nThe NativePHP Team")
5050
->success();

app/Notifications/PluginRejected.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function toMail(object $notifiable): MailMessage
3737
->line("Unfortunately, your plugin **{$this->plugin->name}** was not approved for the NativePHP Plugin Directory.")
3838
->line('**Reason:**')
3939
->line($this->plugin->rejection_reason)
40-
->action('View Your Plugins', url('/customer/plugins'))
40+
->action('View Your Plugins', route('customer.plugins.index'))
4141
->line('If you have questions about this decision, please reach out to us.');
4242
}
4343

app/Notifications/PluginSaleCompleted.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace App\Notifications;
44

5+
use App\Models\PluginPayout;
56
use Illuminate\Bus\Queueable;
67
use Illuminate\Contracts\Queue\ShouldQueue;
78
use Illuminate\Notifications\Messages\MailMessage;
@@ -13,7 +14,7 @@ class PluginSaleCompleted extends Notification implements ShouldQueue
1314
use Queueable;
1415

1516
/**
16-
* @param Collection<int, \App\Models\PluginPayout> $payouts
17+
* @param Collection<int, PluginPayout> $payouts
1718
*/
1819
public function __construct(
1920
public Collection $payouts
@@ -50,7 +51,7 @@ public function toMail(object $notifiable): MailMessage
5051
$formattedTotal = number_format($totalPayout / 100, 2);
5152

5253
$message->line("**Total payout: \${$formattedTotal}**")
53-
->action('View Developer Dashboard', url('/customer/developer/dashboard'))
54+
->action('View Developer Dashboard', route('customer.developer.dashboard'))
5455
->line('Thank you for contributing to the NativePHP ecosystem!');
5556

5657
return $message;

resources/views/customer/licenses/show.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ function showEditSubLicenseModal(subLicenseId, currentName, currentEmail) {
420420
const nameInput = document.getElementById('edit_name');
421421
const emailInput = document.getElementById('edit_assigned_email');
422422
423-
form.action = '/customer/licenses/{{ $license->key }}/sub-licenses/' + subLicenseId;
423+
form.action = '/dashboard/licenses/{{ $license->key }}/sub-licenses/' + subLicenseId;
424424
nameInput.value = currentName || '';
425425
emailInput.value = currentEmail || '';
426426
modal.classList.remove('hidden');

0 commit comments

Comments
 (0)