---
title: "Geting current page url in mvc"  
description: "Geting current page url in mvc"  
author: "Anonymous User"  
published: 2014-10-08  
updated: 2014-10-08  
canonical: https://www.mindstick.com/forum/2333/geting-current-page-url-in-mvc  
category: "asp.net mvc"  
tags: ["asp.net", "asp.net mvc"]  
reading_time: 1 minute  

---

# Geting current page url in mvc

I am using the [Facebook](https://www.mindstick.com/articles/44467/successful-companies-that-utilize-facebook-as-a-social-media-platform) [comments](https://www.mindstick.com/news/2328/deadline-for-comments-on-the-draught-indian-telecommunication-bill-is-extended-by-the-dot) [plugin](https://www.mindstick.com/articles/23236/institute-management-for-wordpress-plugin) on a [blog](https://www.mindstick.com/articles/12705/myths-and-misconception-about-blog) I am building. It has some FBXML [tags](https://www.mindstick.com/interview/33868/difference-between-html-elements-and-tags) that are interpreted by the facebook [javascript](https://www.mindstick.com/articles/874/how-to-create-watermark-text-for-textbox-by-using-javascript) that is referenced on the page.

This all [works fine](https://answers.mindstick.com/qa/115732/my-software-works-fine-on-windows-10-but-crashes-on-windows-11-why), but I have to pass in the current, fully-qualified [URL](https://www.mindstick.com/forum/436/url-redirection) to the plugin.

```
<div style="width: 900px; margin: auto;">    <div id="fb-root"></div>    <fb:comments href="URL HERE" num_posts="10" width="900"></fb:comments></div>
```

## Replies

### Reply by Anonymous User

You could use the Request.RawUrl, Request.Url.OriginalString, Request.Url.ToString() or Request.Url.AbsoluteUri.


---

Original Source: https://www.mindstick.com/forum/2333/geting-current-page-url-in-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
