mirror of
https://github.com/spatie/dnsrecords.io.git
synced 2026-04-27 08:25:57 +03:00
[PR #17] [MERGED] Append the entered command to the URL #35
Labels
No labels
bug
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dnsrecords.io#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spatie/dnsrecords.io/pull/17
Author: @cwhite92
Created: 10/28/2017
Status: ✅ Merged
Merged: 10/29/2017
Merged by: @freekmurze
Base:
feature-append-url← Head:feat/command-in-url📝 Commits (1)
173494aAppend the entered command to the URL, and allow users to browse directly to a command📊 Changes
8 files changed (+27 additions, -26 deletions)
View changed files
📝
app/Http/Controllers/HomeController.php(+2 -7)📝
app/Services/Commands/Commands/Clear.php(+1 -1)📝
app/Services/Commands/Commands/DnsLookup.php(+2 -4)📝
app/Services/Commands/Commands/Ip.php(+2 -2)📝
app/Services/Commands/Commands/Manual.php(+2 -2)📝
resources/assets/js/app.js(+9 -1)📝
resources/views/home/index.blade.php(+8 -8)📝
routes/web.php(+1 -1)📄 Description
This PR introduces support for the command being in the URL. It fixes #15.
There were two options to fix this, the easiest being to just use a query string parameter like
https://dnsrecords.io?c=website.com, but that's kind of ugly IMO. The other option was to have it as a route parameter likehttps://dnsrecords.io/website.com, which looks a lot better, so I ran with that. Open to discuss this though.Notes:
https://dnsrecords.io/commandas well as submit the command through the homepage form.requiredvalidation unnecessary.redirect()s andresponse()es, since returningback()will lead to undesired results when you're already onhttps://dnsrecords.io/website.comfor example.https://dnsrecords.io/website.com, and then went back tohttps://dnsrecords.io, I'd get command output printed out.?tohelp, sincehttps://dnsrecords.io/?obviously won't work :( I updated the help hint to match.Also I was going to fix the tests... before I realized you don't have any. :) Maybe that'll be a future PR. ;)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.