Questions tagged [url]

22436 questions
1

votes
3

answer
469

Views

How to open URL from Fragment TextView?

I have an activity with multiple tabs and each tab consists of a fragment with some text inside. I would like to have a text with 'Read More' which is a link to an URL. Without having the link, everything works fine, but when I try to implement it, I get E/UncaughtException: java.lang.NullPointerEx...
CuriousPaul
1

votes
1

answer
628

Views

iOS - Trigger outgoing VOIP Call on clicking the caller in the native iOS Recent call table view

I have implemented the CallKit for my App to trigger/receive both Audio and Video Call within our App by using WebRTC. Which is working seamlessly without any problem. As I see there are 3 ways to trigger a call from Call Kit. Performing an interaction within the app Opening a link with a supported...
i70ro
1

votes
1

answer
3k

Views

Vue - watch url without VueRouter

Is it possible to react on URL changes in a Vue component, without including VueRouter? In case VueRouter is present, we can watch $route, however, my application does not rely on VueRouter. export default { watch: { '$route': route => console.log(window.location.href) } }
nagy.zsolt.hun
0

votes
0

answer
14

Views

Passing the language parameter to the next page (url) when submitting the form

I'm having problems with getting the right language parameter in the url when submitting a form. My application has two possible language parameters: de and en. I've made a middleware called setLocale.php with this function: public function handle($request, Closure $next) { $locale = $request->seg...
ofmiceandmoon
1

votes
2

answer
36

Views

What are these symbols that crash URLDecoder with UTF-8?

I'm using URLDecoder to decode a string: import java.net.URLDecoder; URLDecoder.decode('%u6EDA%u52A8%u8F74%u627F', StandardCharsets.UTF_8.name()); Which leads to the crash Exception in thread 'main' java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For in...
Sahand
0

votes
0

answer
5

Views

Is there any alternate way to access objects from Amazon S3?

I have a file in Amazon S3. I have set it to public access. Is there a way I can access those files by encrypting the URL of S3 objects or any other means?
KillMe
0

votes
0

answer
4

Views

Apache http to https rewrite rule not working - but it was this afternoon

I've got a few sites running on my apache server. I have a ssl cert on all of them. Because of this, I have a virtual host * rule that should redirect any http traffic to the related https site. If i try to go to a site right now with http, I get the apache test site... However, if I type in https,...
Brds
0

votes
1

answer
20

Views

iOS Swift, what is the url of the “on my iPhone” folder

I need to import to my app some document that have been saved into the 'On My iPhone' folder. What would be the url of this folder? (those document (pdf) are saved outside the app by the user and I would like if possible to move/copy them to the app document folder but again I can't find that url.
Julien7377
1

votes
3

answer
603

Views

Is it a good restful URL design to avoid using DELETE and PUT?

I read an example of restful service, it only uses two HTTP method: get post. for example, there is a task list at the server. To design the restful URL, we can use: www.example.com/task GET. return all the task list. www.example.com/task/id GET. return the specific task. www.example.com/task/c...
Jimmy
1

votes
2

answer
551

Views

_googWcmGet Google AdWords Testing URL Parameters

I know I have done this before. Just cannot remember how. For those that are familiar with Google AdWords ability to push a phone number for conversion tracking to your website, it employs the following function: _googWcmGet The support documentation tells the user to wait an hour and then search fo...
The Brewmaster
0

votes
0

answer
4

Views

Characters appear at the end of url (Django project)

In my Django website when clicking an image to go to other url, at the end of the url some random numbers appear, example '?x=27&y=18' Any way to remove these characters ? An example http://127.0.0.1:8000/Login/?x=11&y=25 When I try accessing the link wihout those characters it still works Code look...
Ventura
1

votes
1

answer
1.9k

Views

Angular 2 (CLI) Routing don't work (Cannot read property 'split' of undefined)

Why routing works only for first imported component after AppComponent (example code below: routing works only for 'PageNonFound')? Also, I noticed error after adding routing to my project Error Error in ./AppComponent class AppComponent - inline template:13:42 caused by: Cannot read property 'spl...
Evan Bor
0

votes
0

answer
9

Views

Get the right url characters when filtering

I made a little search form with a filter in WordPress with Gravity forms and it is working but i dont get one thing working and that is that when somebody select the check in, check out date and guests and you use a filter that the guest stays on the amount you selected (visual). I notice that its...
Maanstraat
1

votes
3

answer
334

Views

How to remove numbering from “lynx --dump -listonly”

$ lynx --dump -listonly index.html Example result: References Visible links 1. http://lynx.invisible-island.net/ 2. http://lynx.invisible-island.net/lynx.html 3. http://lynx.invisible-island.net/current/index.html What I want to do is remove the 1. 2. and 3. 'References' and 'Visible Links' text inc...
1

votes
1

answer
469

Views

Redirect User Back to same URL after posting data in golang

I want to redirect user to the page that he has came from after serving a form and taking the input from that form upon successful submission he has to redirect to the same page. I want this to be done in Golang. Thanks in Advance
user8800020
1

votes
1

answer
224

Views

How to remove # in url in angular 5?

Actually i am using angular 5 for my project, I need to remove # from my url. here is my url http://localhost:4200/#/product/add. After published in my domain it works properly but while refresh the page it shows 404 error because of # in my url. Is it possible to do this? Need to remove # in url
perumal N
1

votes
2

answer
57

Views

Making PUT and GET Responses in Katalon Studio

I’m new in working with RESTful APIs. For my case I want to make an PUT Request and then GET it. I made an PUT Request and it worked. [1]: https://imgur.com/a/zlUTzYB But now I want to make an GET Request. Can I somehow make so that GET Request will automatically take PUT Requests statementId and...
brithwulf
1

votes
1

answer
81

Views

How to Refresh View with Model

I have a form with a bunch of fields that the user needs to fill out. One part has a textbox that the user puts a Reference Number and clicks the link below to refresh the View with most of the fields filled out. @Html.ActionLink('Copy', 'CopyFrom', 'Logistics', '',new { onclick = 'this.href += '&va...
Nerd in Training
1

votes
2

answer
78

Views

AWS S3 authenticated user access using presigned URLs?

I would like to host files on a private AWS S3 bucket which can only be accessed by users who are authenticated to my web application. The links to these file downloads must be static. Simple proxy method: I know this could be done using a proxy service. In this case the static links would point to...
Zugdud
1

votes
1

answer
40

Views

Should Rest API return only structured data? What if I have to get html?

I'm trying to develop a super simple web page with REST API. In most examples, they suggest to get a resource like below. request GET /dogs/1 response HTTP/1.1 200 OK Content-Type: application/json { 'id' : 1, 'name' : bity } The path /dogs/1 represents structured data of dog 1. Then which path shou...
dain.lee
1

votes
2

answer
54

Views

Django: how to get url path?

I've read something about reverse function but I don't get it. Two of my urls are calling the same view. In this view I need to decide the context based on the url. urls.py: urlpatterns = [ path('view/', my_view), path('edit/', my_view), ] views.py: def my_view(request): #some code if(my_url_path ==...
Gonzalo D'ambra
1

votes
3

answer
211

Views

How to form URL for different entity in Dynamics 365?

I am building up url for different entity in Dynamics 365 crm. I found this for crm 2011 but I want more elaborate solution than that. Observed URL: For Quote Entity: https:**[instance url]**.com/main.aspx?etc=1084&extraqs=&histKey=254156564&id=%7b[**GUID**]%7d&newWindow=true&pagetype=entityrecord&...
Protap Ghosh
1

votes
2

answer
35

Views

How to get value from one of several possible URL parameters?

I want to retrieve values form url parameters, but the parameters are not constant: it can be 'referer=' or 'utm_source=' or 'source='. I can get the value with url.searchParams.get('referer'); Complete script for now : function() { var url_string = window.location.href; var url = new URL(url_strin...
B4b4j1
1

votes
2

answer
2.2k

Views

Qt - How to open a website in a particular browser

I am coding one project, which needs to launch some webbrowsers with the given url. I saw some QT examples, but they explained how to launch the default browser, not a particular browser. Any helping suggestions will be appreciated. Edit1: Below is the code I use currently QString temp='C:/Program F...
prabhakaran
1

votes
1

answer
1.7k

Views

Why does a leading slash cause relative URLs in links on my site to resolve to the wrong page? [closed]

On my page http://example.com/games/games/ipad.html I have links such as: This should resolve to the URL http://example.com/games/2010/junee2010/44/Grand%20Theft%20Auto%20Chinatown%20Wars%20HD.html but the '/games' is missing from the URL path when the link is followed. Instead, the link resolves t...
Vyacheslav Loginov
1

votes
4

answer
275

Views

Friendly URL to accept extra params in the “traditional way” (PHP's $_GET)

I am developing a web application using PHP and I am using Apache's mod_rewrite for having 'friendly' urls. I have friendly urls like: mysite.com/article/112 mysite.com/article/145 mysite.com/article/40 Everything is ok but I want to be able to receive extra parameters like this mysite.com/article/1...
Carlos Cardenas
0

votes
1

answer
11

Views

IIS Rewrite based on query string value

I am new to IIS Rewrite, Need someone to assist me, I am in a scenario to redirect to another domain based on querystring value. Ex: Request: http://localhost:50743/api/Values?stdId=1000&stdName='Test' http://localhost:50752/api/Values?stdId=1001&stdName='Test1' http://localhost:50753/api/Values?std...
Vicky S
1

votes
1

answer
260

Views

nginx rewrite part of url with ? mark

I'm serving a website with nginx as a proxy for apache. I have a problem with rewrite module. http://example.com/foo/bar/url?someparam=1&otherparam=2 I need to rewrite from /foo/bar/url?someparam=1&otherparam=2 to /foo/bar/url2?someparam=1&otherparam=2 I found it problematic, since it's not /foo/...
Ivan Nikolaev
1

votes
3

answer
57

Views

Is there a way to rewrite my urls without using mod_rewrite and .htaccess?

Is there a way to rewrite my urls from: http://www.website.com/notification.php to http://www.website.com/notification I dont have the permission to turn on mod_rewrite and our organisation doesnt want it either. Is there a way to realise this with php only? Thanks in advance
Khaled Tlili
1

votes
0

answer
444

Views

Reverse proxy with IIS

I'm trying to integrate ASP.net and Node.js on a server. My expectation is here. client ----> IIS Server ----> ASP.NET (except /api/. localhost:80) (test.foo.com) |---> Node.js (starting with /api/. localhost:4000) Node app is executed as a windows service, and serve localhost:4000/api/ in loc...
sungyong
1

votes
1

answer
72

Views

Hiding some characters in URL bar using jquery

I have my URL like www.abc.com/some_folder1/some_folder2/page.php is there are any ways to hide 'some_folder1 or 2' In URL while it is displaying on URL bar like : www.abc.com/some_folder1/page.php or www.abc.com/some_folder2/page.php (have to just hide 'by keeping its functionalities unaffected')
Deepak Bharadwaj
1

votes
0

answer
338

Views

Rewrite URLs on Laravel Homestead

I'm making a web game. The backend is Lumen and the frontend is a single page application. I want to make a use of JavaScript History API, so all URIs (except for actual file or directory paths) should point to the same backend script. I know how to do it on Apache, but my local server is Laravel Ho...
Robo Robok
1

votes
0

answer
44

Views

include a page selected in URL with $_GET

I want to create a page who's including himself the selected page choose in URL (example : index.php?p=signin with protection. Can I secure more my page? I don't secure the text from $_GET['p'] against injection. I just want to know if its dangerous or not with this method or not ? $grantLevel = [ '...
P.FAGNIARD
1

votes
0

answer
100

Views

what is the Best way UrlRewriting in umbraco?

I want to change this http://localhost:65438/vehicle?id=12345 into http://localhost:65438/Make/Model/?id=12345 For this i am using following code for urlrewriting in umbracoUrlRewriting.config But the problem is that it is hitting the page load action of vehicle view continuously after a period of...
Plz Help
1

votes
1

answer
794

Views

Root Route Not Redirecting in Express

My issue stems around strictly the '/' route. I think this is called the root route. When a user connects to my site, I check to see if there's session data on the said user so that he/she doesn't always have to re-log when the browser closes. If there is no session data on the user, then my website...
Programmer wannabe
1

votes
0

answer
77

Views

Spring @WebFilter causes 404 on prod, runs fine on local

I am using a @WebFilter with urlMapping = '/*' option. (Also tried with servlet). I use it to manage my oAuth single sign ons. It runs fine on local with tomcat on eclipse. On prod it throws a 404. Disabling the filter(thus, by passing the filter) works fine. Any pointers anyone? AppConfig.java: @...
dixyantar panda
1

votes
1

answer
145

Views

How can I open/send a URL to another app on iOS with a Gluon application?

I hope to make use of existing functionalities in other apps on iOS in my own app. To my knowledge it should be able to be done with URL custom schemes: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication....
lelelo
1

votes
1

answer
134

Views

Saving a data URL from Javascript in PHP through Ajax

For my project I need to save what's displayed on a canvas to a database. I am now quite familiar with the toDataURL() function, and the code below (essentially just a test) works, displaying the image twice. var canvas = document.getElementById('canvas'); var image = new Image(); image.src = '03Jun...
Stick_Giraffe
1

votes
1

answer
164

Views

Missing short urls created via Campaign URL Builder in goo.gl dashboard

If you create short URL directly via goo.gl , you can track all links at one place in goo.gl dashboard. However goo.gl do not shows short url created via Campaign URL builder. https://ga-dev-tools.appspot.com/campaign-url-builder/ In above builder there is option to make URL short, which generates...
idurvesh
1

votes
1

answer
25

Views

.htaccess rewrite causes an endless loop

I have a .htaccess code the rediredt every user on smartphone to a competible website: RewriteEngine On RewriteEngine On RewriteCond %{QUERY_STRING} !^desktop RewriteCond %{HTTP_USER_AGENT} 'android|blackberry|googlebot-mobile|iemobile|iphone|ipod|#opera mobile|palmos|webos' [NC] RewriteRule ^ h...

View additional questions