Jump to content

Getting Invalid URL for a URL that is valid


ChrisFVS
 Share

Recommended Posts

I'm trying to setup a Custom Search and its telling me I have an invalid URL when I try to test the search even though the URL should be valid (and does work when I put it into a web browser).  I've changed the exact letters in the URL for privacy but you can see the problem below:

 

 http://cl.ly/image/3f0M3F093110

 

https://www.test.com/test.aspx?#test=board/1234#filter={query}

 

AlfredApp 1.4 (268)

OSX 10.8.3

 

It is very easy to replicate this issue by using the URL above and pressing the "Test" button within a Custom Search.

 

Link to comment
Share on other sites

I'm trying to setup a Custom Search and its telling me I have an invalid URL when I try to test the search even though the URL should be valid (and does work when I put it into a web browser).  I've changed the exact letters in the URL for privacy but you can see the problem below:

 

 http://cl.ly/image/3f0M3F093110

 

https://www.test.com/test.aspx?#test=board/1234#filter={query}

 

AlfredApp 1.4 (268)

OSX 10.8.3

 

It is very easy to replicate this issue by using the URL above and pressing the "Test" button within a Custom Search.

 

Alfred v1 bugs do not belong in the v2 Bug Reports forum.

 

I pasted the provided url (https://www.test.com/test.aspx?#test=board/1234%23filter=test) in Safari 6.0.3 and got a 404 error. Are you sure you provided the correct URL? Am I doing something wrong? Can you give more information?

Edited by Tyler Eich
Link to comment
Share on other sites

Sorry I posted in the wrong forum.  Yea, the URL I gave you is not for a real page since the actual page I am trying to link to requires credentials to view.  However, it is a valid URL that should be allowed for a custom search.  When I add this and do the test, the test fails.  Then if I save and try to use the custom search, it doesn't actually launch the search or post the URL to the web browser.  If I got the 404 in the web browser, I'd consider that a success. 

Link to comment
Share on other sites

Sorry I posted in the wrong forum.  Yea, the URL I gave you is not for a real page since the actual page I am trying to link to requires credentials to view.  However, it is a valid URL that should be allowed for a custom search.  When I add this and do the test, the test fails.  Then if I save and try to use the custom search, it doesn't actually launch the search or post the URL to the web browser.  If I got the 404 in the web browser, I'd consider that a success. 

 

You need to pre-encode the URL outside of the {query} parameter to be valid, so replace the second # with %23. Interestingly, you'll notice that this forum has already done this as if I copy the test URL you pasted, it has %23 instead of #'s :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...