i have a current page url that looks like this:  http://localhost/admin/namespace_module/yeezy/index/test_id/5/key/23123asda/   the url can be dynamic but always contain /test_id/value/ , first i want to check if the /test_id/ is exist in my current url:  window.location.href   then i need to retrieve the value
262
I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?
61790
The actually URL which my app uses is:  http://site.com/search.php?search=iPhone    but I would like it to be possible to achieve the same with   http://site.com/iPhone   I have no experience of rewrite rules, how can I set this up?  The solution has worked but the new URL is displayed in the address bar. I thought it would have been possible to set this up so that it appears as though the page location is   http://site.com/iPhone   without changing to display   http://site.com/search.php?search=iPhone    Is this possible? Thanks.
42098
When I used an exposed filter the filter selection is passed as name/value pair in the url, for example:  members?field_a=valuea&amp;field_b=valueb   How can I set it up to use more of a "pathauto" style url:  members/valuea/valueb
89533
I need Drupal to use a custom page template if the URL contains a particular _GET parameter.  In D7 I would do something like this in the theme's template.php:  function mytheme_preprocess_page(&amp;$variables) {       if($_GET['isCustomTpl'] == true)         $variables['theme_hook_suggestions'][] =  'page__myCustomTpl'; }   It doesn't work in D8 though (I would have been surprised by the opposite, considering all the architectural changes in the theme layer).  Any ideas?  Bonus question: is it possible to define such a function in a module, so that i can release it publicly without having the users to edit their themes?
105336
I currently have an ID of a page that I want to use its permalink as the front of a permastruct of a CPT I'm setting up.  Now I can use get_permalink() but that returns the full URL:  http://www.example.com/imapage/subpage/subsubpage  but all I want to return is imapage/subpage/subsubpage  Is there a function that can do this or do I have to device something that can subtract the non-needed part of the url?
119361
I have a vf page that is a custom button. That's it.  this VF page is on a STD Page Layout. When the user clicks on the VF page, the parent window needs to be redirected to the new URL.  The way this is working, is that the new page is opening in the vf section of the page layout.   &lt;apex:page standardController="Opportunity"  standardStylesheets="true" extensions="OpportunityController" &gt; &lt;base target="_parent" /&gt; &lt;body style="background:#f3f3ec" &gt; &lt;apex:form &gt; &lt;center&gt;  &lt;apex:commandButton action="{!redirect}"  value="Change Record Type" rendered="{!render}"/&gt; &lt;/center&gt;   &lt;/apex:form&gt;    &lt;/body&gt; &lt;/apex:page&gt;
68493
Let's say I want to verify that an upload button is not present in a page. I cannot use any locator here since I don't know the object locator value. So how do I assert in my test that it is never present?
12301
How can you change the href for a hyperlink using jQuery?
3872
Is there a simple way in .NET to quickly get the current protocol, host, and port? For example, if I'm on the following URL:  http://www.mywebsite.com:80/pages/page1.aspx  I need to return:  http://www.mywebsite.com:80  I know I can use Request.Url.AbsoluteUri to get the complete URL, and I know I can use Request.Url.Authority to get the host and port, but I'm not sure of the best way to get the protocol without parsing out the URL string.  Any suggestions?
88295
I am trying to make my url from this:  example.com/view.php?id=15   To this:  example.com/watch/15   My code in .htaccess is as follows:  Options -Indexes Options +FollowSymlinks RewriteEngine On RewriteRule ^watch/([^/]+) view.php?id=$1 [NC]   Now if I go to example.com/watch/15 it loads the content but without any JS, CSS because in this case it looks for CSS and JS under the /watch folder which doesn't exist.  How do I make this option work properly? I don't want to create watch folder and copy-paste CSS and JS so it will embed properly.
41465
I am new to communities in lightning and I am trying to figure out a way to directly fetch the URL parameters into the lightning component attributes using the  {! urlParamName} expressions.  for example :   https://www.someurl.com/page?name=somename&amp;surname=somesurname   My lightning component will be :   &lt;aura:component&gt;      &lt;!-- Parameters Available in URL--&gt;     &lt;aura:attribute name="name" type="String"&gt;     &lt;aura:attribute name="surname" type="String"&gt;      &lt;!--It will get name parameter from URL directly--&gt;     Name is : {!v.name}       &lt;!--It will get surname parameter from URL directly--&gt;     SurName is : {!v.surname}  &lt;/aura:component&gt;   I am trying to figure out a way which cannot includes JS. Currently I am using Lightning JS to get these parameters.
34708
In SharePoint how do you get the ID value from the url of the page you are on using javascript( Jquery,ajax, Rest..),  e.g. I have the url like so: http:// ddd/mypage?ID=xx   I tried before to retrieve the full url but it didn't get the ID and its value. so I have to get the ID value directly with the get method
113227
, clicking &quot;link&quot; &quot;share&quot; for anwers yields a short (traceable) URL in the &quot;share a link to this answer&quot; dialog, such as †:  These short URLs show no clue about the linked question whatsoever. Also, when different people use a short URL for the very same post, then the user id suffix makes those be different URLs for a browser. Such links will then not be shown as visited‡. I know how to get URLs that have a proper slug. But as I see  pop up on these sites (where referrals ), I assume many others just don't realize full URLs would be better for use on these sites themselves? Or many don't want to do the little effort to get the full URL? So: can we please have an easy way to get the full URL as well, in a way that is easily found for those who don't know about the different links? (Currently for questions, clicking &quot;link&quot; has the same effect. But then one can also right-click the title, or take the URL from the location bar, to get the full human-readable URL. Once, Jeff .)  † The short links for answers are not (yet) [automatically converted][6] into a clickable question title either, unlike links such as `https://meta.stackexchange.com/questions/74274/privacy-leak-in-permalink#75963`, which renders as https://meta.stackexchange.com/questions/74274/privacy-leak-in-permalink#75963 But I guess that will change soon.  ‡ On Meta the CSS for posts doesn't indicate such difference anyway, which is a different issue.
7769
How can I check if the current page is wp-login.php or wp-signup.php ?  Are there more elegant solutions than using $_SERVER['REQUEST_URI'] ?
119762
I'm trying to answer a question, and for that I need to mark 4 different mock (fake) urls and what they'd have. When I type this, a link is automatically created, and I would like to avoid this behaviour since this page doesn't exist. I want to create a link only if I do [] () without space in the middle. Is this even possible? Example of what I mean:    Code for that page   That shouldn't have a link automatically created since it doesn't exist, but inserting it in code is not feasible (because next line is code for that page and there should be a separation). Block quotes didn't work either. I'm asking if this is possible without breaking the url itself, only the hyperlink.
35989
I'm getting HREF no return errors in search console and I don't understand why.    We have a page that contains buttons for get multiple pages of results.  URL structure:  Base page: `https://example.com/XX/publications` Pagination of results: `?count=50&amp;page=4` Actual url: `https://example.com/au/publications?count=50&amp;page=4`   Source page:  &lt;link rel="canonical" href="https://example.com/au/publications"&gt; &lt;link rel="alternate" hreflang="en-US" href="https://example.com/us/publications"&gt;   alternate page:  &lt;link rel="canonical" href="https://example.com/au/publications"&gt; &lt;link rel="alternate" hreflang="en-AU" href="https://example.com/au/publications"&gt;   How can I tell Google that it should ignore the URL query parameters?
13132
How can I create a shortcut for URL in my desktop? I want to use them in Firefox or Chrome.   If a copy and paste didn't work.   What script I have to use?