Open orchardbot opened 10 years ago
@bleroy commented:
This looks like something that would be just fine as a module. Why does this need to be in core?
AimOrchard commented:
What are you with the core, if it cannot handle core features?
A link that you can click can contain an anchor, why should you disallow this?
@agriffard commented:
The LinkFieldDriver tests if the Url is valid using the method Uri.IsWellFormedUriString() As you noticed, it seems that it returns an error with '/page#anchor'.
Can you use 'http://www.yoursiteurl/page/#anchor', which is valid ?
neTp9c commented:
http://domain.com/page#anchor is valid but /page#anchor is not valid. It is not right.
Disallow anchor same disallow slash as end url.
@sebastienros commented:
Ok to fix, the solution is to remove the #value before checking the validity of the url, then add it back if the url is valid.
neTp9c created: https://orchard.codeplex.com/workitem/20300
Url with anchor (/page#anchor) in Link Field is not valid