Skip to content

Conversation

vilherda
Copy link

Sometimes the attribute 'options.target' is not a string and is an object like:

{
    "protocol": "http:",
    "slashes": true,
    "auth": null,
    "host": "some.hostname.fake",
    "port": null,
    "hostname": "some.hostname.fake",
    "hash": null,
    "search": null,
    "query": null,
    "pathname": "/",
    "path": "/",
    "href": "http://some.hostname.fake"
}

In this case is necessary to access to the attribute 'options.target.href'.

Sometimes the attribute 'options.target' is not a string and is an object like:
```json
{
    "protocol": "http:",
    "slashes": true,
    "auth": null,
    "host": "some.hostname.fake",
    "port": null,
    "hostname": "some.hostname.fake",
    "hash": null,
    "search": null,
    "query": null,
    "pathname": "/",
    "path": "/",
    "href": "http://some.hostname.fake"
}
```
In this case is necessary to access to the attribute 'options.target.href'.
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