[GH-ISSUE #22] Full URLs redirect to that URL #7

Closed
opened 2026-02-27 23:19:59 +03:00 by kerem · 1 comment
Owner

Originally created by @svenluijten on GitHub (Oct 30, 2017).
Original GitHub issue: https://github.com/spatie/dnsrecords.io/issues/22

Example

Why

This happens because of this line, which sets the form's action attribute to whatever was written in the input.

Solution

Ideally, when the user enters a full URL, it'll parse the input and post to whatever it was without the scheme (https://, ftp://), in the example's case just spatie.be.

Originally created by @svenluijten on GitHub (Oct 30, 2017). Original GitHub issue: https://github.com/spatie/dnsrecords.io/issues/22 ## Example - Go to https://dnsrecords.io - Copy & paste `https://spatie.be` into the "terminal" - Hit enter - You're redirected to https://spatie.be ## Why This happens because of [this line](https://github.com/spatie/dnsrecords.io/blob/master/resources/assets/js/app.js#L7), which sets the form's `action` attribute to whatever was written in the input. ## Solution Ideally, when the user enters a full URL, it'll parse the input and post to whatever it was without the scheme (`https://`, `ftp://`), in the example's case just `spatie.be`.
kerem closed this issue 2026-02-27 23:19:59 +03:00
Author
Owner

@freekmurze commented on GitHub (Oct 30, 2017):

We'll handle it further in #24

<!-- gh-comment-id:340473921 --> @freekmurze commented on GitHub (Oct 30, 2017): We'll handle it further in #24
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dnsrecords.io#7
No description provided.